Numbers 1:19

NASB
just as the LORD had commanded Moses. So he numbered them in the wilderness of Sinai.