“Definitely you are not to number the tribe of Levi, nor take the sum of them among Bnei-Yisrael.
for Adonai told Moses saying,
However, the Levites were not counted among Bnei-Yisrael, just as Adonai commanded Moses.
The male Levites a month old and upward totaled 23,000, though they were not included among Bnei-Yisrael, since He did not give them an inheritance among Bnei-Yisrael.