The Basics of Judaism: Basic Values and Morality: Counting People:
Is counting people allowed?
Counting people directly isn't allowed; that's why Moses was told to take a census by collecting a half-shekel from each person and then counting the money (Ex.30:11-12).
Ask a follow-up question