After the plague, Adonai said to Moses and Eleazar son of Aaron the kohen saying,
Moses numbered Israel in the wilderness of Sinai just as Adonai had commanded him.
For they have been enemies to you in their deceptions of you in the matter of Peor and in the matter of Cozbi, the daughter of a Midianite prince, their sister who was slain on the day of the plague on account of the Peor incident.”
However, 24,000 were dead because of the plague!