Bamidbar3:16

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

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

Bamidbar 3:16

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

Bamidbar / Numbers 3:16 · Remez

Bamidbar 3:16

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

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

Remez רֶמֶז

A promise in the repetition

Sometimes a manager repeats an assignment twice. The first time it is an order. And the second time, perhaps, a promise to help?

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

Malbim Count the sons of Levi

After this introduction comes the command to count the Levites, in order to know by how much the number of the firstborn exceeds the Levites. The purpose of the command was to know the general total, not the details. That is why here it says "by their fathers' houses, by their families," while of the children of Israel it says "by their families, by their fathers' houses." For there the count began from below, from the families, and rose to the fathers' houses, while here he counted from above downward, from the fathers' houses to the families.

And it says a second time "count them," that is: I want to know only the general number, for this is the meaning of the word "count" (פָּקַד) and its difference from the word "number" (סָפַר). And here neither "head by head" nor "by the number of names" is mentioned.

And the sages said that Moshe (Moses) our teacher stood at the entrance of their tents, and a voice from heaven said: "So many infants are in this house." About this it says a second time "count them": it is a promise, not a command. That is: "I promise you that you will know their general number." And about this it says:

Haamek Davar Count the sons of Levi

Here "lift the head" is not written. The reason for this is known from the midrash Rabbah. And by our explanation above there is no change here: here it speaks not of heads but of the count of the men of the tribe, so it is written "count," as there: "you shall count."

Takeaway

Of all Israel it says "by their families, by their fathers' houses" (Bamidbar / Numbers 1:2), of the Levites "by their fathers' houses, by their families" (Bamidbar / Numbers 3:15).
The introduction Malbim speaks of is the passage saying that the Levites are taken in place of the firstborn (Bamidbar / Numbers 3:11–13).
For Malbim, "count" (פָּקַד) is to learn the general number, "number" (סָפַר) is to count each one by one.
Malbim's sentence ends with the words "and about this it says": what follows is the next verse, "And Moshe counted them by the word of the Eternal" (Bamidbar / Numbers 3:16).
The explanation "above" that Netziv refers to is on the second verse of the book, where it says "lift the head" (Bamidbar / Numbers 1:2), while "you shall count" is said in the next verse (Bamidbar / Numbers 1:3).