After the plague the Lord said to Moses and Eleazar son of Aaron, the priest,
as the Lord commanded Moses. And so he counted them in the Desert of Sinai:
They treated you as enemies when they deceived you in the Peor incident involving their sister Kozbi, the daughter of a Midianite leader, the woman who was killed when the plague came as a result of that incident.”
but those who died in the plague numbered 24,000.