[PATCH 5.10 42/64] octeontx2-af: Update get/set resource count functions