Num 26:1-2

26 After the plague the Lord said to Moses and to Eleazar son of Aaron the priest, 2 “Take a census of the whole congregation of the Israelites, from twenty years old and upward, by their ancestral houses, everyone in Israel able to go to war.”