Bamidbar3:16

וַיִּפְקֹד אֹתָם מֹשֶׁה עַל־פִּי יְהוָה כַּאֲשֶׁר צֻוָּה׃

And Moshe counted them by the word of the Eternal, as he had been commanded.

Bamidbar 3:16

וַיִּפְקֹד אֹתָם מֹשֶׁה

Bamidbar / Numbers 3:16

וַיִּפְקֹד אֹתָם מֹשֶׁה עַל־פִּי יְהוָה כַּאֲשֶׁר צֻוָּה׃

And Moshe counted them by the word of the Eternal, as he had been commanded.

Pshat פְּשָׁט

A voice from the tent

Rashi: Moshe (Moses) asked how he could enter every tent to count the infants. The Eternal answered: "You do yours, and I will do Mine." Moshe stood at the entrance, and a voice from heaven said how many infants were inside. Netziv: the spirit of holiness that was on Moshe when he was given the command was on him during the count too, and he knew what was inside each tent.

How Rashi and Haamek Davar explain it

Remez רֶמֶז

A promise in the repetition

Malbim: of the Levites it says "by their fathers' houses, by their families," in the reverse order from all Israel, since here only the general total is needed. And the second "count them" is not a command but a promise: "I promise you that you will know their number." Netziv: of the Levites it does not say "lift the head," for here not the heads are counted but all the men of the tribe.

How Malbim and Haamek Davar explain it

Drash דְּרָשׁ

Counted before birth

The midrash teaches: the tribe of Levi is used to the Eternal counting it even when small, even in the mother's womb. When Yaakov (Jacob) went down to Egypt, they were seventy less one, yet the Torah says "seventy": this is Yocheved, the mother of Moshe (Moses), who was born right at the gate of Egypt. So the Levites too are counted from a month, and the Presence told Moshe how many infants were in each tent.

How Midrash Tanchuma (Buber) explain it

Sod סוֹד

The whole person counts

Shem MiShmuel: the Levites did not sin with the calf and remained at their level: doing everything for the sake of the One on High. So their body was always at the level of the soul, and of them it does not say "lift the head" or "head by head": the whole person counted, body, soul and mind. Their count was not to lift the head but for appointment.

How Shem MiShmuel explain it