Bamidbar1:49

אַךְ אֶת־מַטֵּה לֵוִי לֹא תִפְקֹד וְאֶת־רֹאשָׁם לֹא תִשָּׂא בְּתוֹךְ בְּנֵי יִשְׂרָאֵל׃

"Only the tribe of Levi you shall not count, and you shall not take their total among the children of Israel.

Bamidbar 1:49

אַךְ אֶת־מַטֵּה לֵוִי

Bamidbar / Numbers 1:49 · Remez

Bamidbar 1:49

אַךְ אֶת־מַטֵּה לֵוִי לֹא תִפְקֹד וְאֶת־רֹאשָׁם לֹא תִשָּׂא בְּתוֹךְ בְּנֵי יִשְׂרָאֵל׃

"Only the tribe of Levi you shall not count, and you shall not take their total among the children of Israel.

Remez רֶמֶז

Lifting the head

The same word can mean to count and to raise up: "he counts for something," "they count on him." What if the Torah's word for counting also speaks of height?

The midrash Lekach Tov: the Levites are not counted among the children of Israel, but their names are lifted to another greatness, to the service of the Mishkan. Kli Yakar: the word "only" excludes, and the words "take the total," "lift the head" everywhere speak of elevation: everything important and treasured has a number.

How Midrash Lekach Tov and Kli Yakar explain it

Midrash Lekach Tov Only the tribe of Levi you shall not count, and you shall not take their total among the children of Israel

But you lift their names to another greatness, for the needs of the Mishkan.

Kli Yakar Only the tribe of Levi you shall not count

If he does not count them, it is obvious that he will not get the total of their number. What then do the words "and you shall not take their total among the children of Israel" teach? What would the verse lack if it said: "Only the tribe of Levi you shall not count among the children of Israel"?

According to what Rashi explains a little further on, the count was by the word of the Eternal: the Presence (שְׁכִינָה) went before Moshe (Moses), and a voice from heaven came out of the tent and said: "So many infants are in this tent." So we can say that "among the children of Israel" refers only to "and you shall not take their total." As if it said: "Only the tribe of Levi you shall not count at all," not even apart from the children of Israel.

Every "only" (אַךְ) comes to exclude. So here it comes to exclude and say: you alone shall not count them, but together with the Presence and the voice from heaven, count them. That is why it says: "Count the sons of Levi," that is, through the Presence, but you alone shall not count them.

And since next to this stands the command "But appoint the Levites over the Mishkan of the Testimony," it appears that wherever "lift" (שְׂאוּ), "lift" (נָשֹׂא), "when you lift" (כִּי תִשָּׂא) is mentioned, these are all words of elevation and a raised head. This is seen in those counted, who stand higher than others, for every important and treasured thing has a number.

Takeaway

The verb for "take the total" (נָשָׂא, "carry, lift") literally means "lift the head": "Take the count" in the second verse of the book is "lift the head" (שְׂאוּ אֶת רֹאשׁ) (Bamidbar / Numbers 1:2). So "do not lift their head" can read as "do not count," and "you lift their names" as "you raise them up."
The explanation of Rashi that Kli Yakar refers to is on the verse "And Moshe counted them by the word of the Eternal" (Bamidbar / Numbers 3:16).
The words "Count the sons of Levi" are Bamidbar / Numbers 3:15. "But appoint the Levites over the Mishkan of the Testimony" is the next verse, Bamidbar / Numbers 1:50.
"When you lift the head of the children of Israel" (כִּי תִשָּׂא) opens the count by half-shekels (Shemot / Exodus 30:12).
The Mishkan of the Testimony is the Mishkan where the ark with the tablets, "the Testimony," stands (Shemot / Exodus 25:16).