All counter functions should return plain ints

sync/atomic requires knowledge of the architecture but we shouldn't be
spreading that knowledge outside the package.