Numbers 3:39-43

ASV(i) 39 All that were numbered of the Levites, whom Moses and Aaron numbered at the commandment of Jehovah, by their families, all the males from a month old and upward, were twenty and two thousand.
40 And Jehovah said unto Moses, Number all the first-born males of the children of Israel from a month old and upward, and take the number of their names. 41 And thou shalt take the Levites for me (I am Jehovah) instead of all the first-born among the children of Israel; and the cattle of the Levites instead of all the firstlings among the cattle of the children of Israel. 42 And Moses numbered, as Jehovah commanded him, all the first-born among the children of Israel. 43 And all the first-born males according to the number of names, from a month old and upward, of those that were numbered of them, were twenty and two thousand two hundred and threescore and thirteen.