Everything was done just as the Lord had commanded Moses. So Moses counted them in the Desert of Sinai.