Moses did exactly what the Lord had commanded and listed the people while they were in the Desert of Sinai.