[Another interpretation (of Isaiah 43:4): "Because you are precious in My eyes, you are honored."] The Holy One said: You are precious in My eyes, for to all the nations I gave no numbering, but to you I gave a numbering. A parable: to a king of flesh and blood who had many granaries, and they were all filthy and full of tares, and he was not exacting about their count; but this granary has fine wheat, therefore I wish to be exacting in counting it — how many kors there are, how many sacks are in it, how many measures are in it. So too the King, the King of kings of kings, the Holy One; and this granary is Israel, as it is said (Isaiah 21:10): "My threshing, and the child of My threshing floor." And it says (Jeremiah 2:3): "Israel is holy to the Lord, the first of His harvest." The child of His house is Moses, as it is said (Numbers 12:7): "Not so My servant Moses; he is trusted in all My house." The Holy One said to him: The nations are likened to thorns, as it is said (Isaiah 33:12): "And the peoples shall be burnings of lime, thorns cut down." Therefore do not be exacting in their numbering; but Israel are righteous, as it is said (Isaiah 60:21): "And your people are all righteous." And it says (Song of Songs 4:7): "You are wholly beautiful, My beloved, and there is no blemish in you." Therefore be exacting in the numbering of Israel. Thus did Moses: he counted them — how many kors, as it is said (Numbers 1:2): "Take a census…"; how many sacks, as it is said (Numbers 2:4): "His host and those of them numbered"; how many measures, as it is said (Numbers 3:40): "Number every firstborn male."
Why God Counts Israel Like Fine Wheat in His Granary
Midrash Tanchuma Buber, Bamidbar 22:3
[ד"א מאשר יקרת בעיני נכבדת] אמר הקב"ה יקר אתה בעיני, שלכל האומות לא נתתי להם מנין, ולך נתתי מנין, משל למלך בשר ודם שהיו לו גרנות הרבה והיו כולם טנופות ומליאות זונין, ולא היה מדקדק במנין, אבל הגורן הזו חטין יפות הן, לכך אני רוצה לדקדק במנין, כמה כורין הן, כמה שקים יש בה, כמה מדות יש בו, כך המלך הזה מלך מלכי המלכים הקב"ה, והגורן זה ישראל, שנאמר מדושתי ובן גרני (ישעיה כא י), ואומר קדש ישראל לה' [ראשית תבואתה] (ירמיה ב ג), בן ביתו זה משה, שנאמר [לא כן עבדי משה] בכל ביתי נאמן הוא (במדבר יב ז), א"ל הקב"ה האומות נמשלו כקוצים, שנאמר והיו עמים משרפות סיד קוצים כסוחים (ישעיה לג יב), לפיכך אל תדקדק במניינם, אבל ישראל צדיקים הם, שנאמר ועמך כולם צדיקים (ישעיה ס כא), ואומר כולך יפה רעיתי [ומום אין בך] (שה"ש ד ז), לכך דקדק במניינם של ישראל, כך עשה משה מנה אותם כמה כורים, שנאמר שאו את ראש וגו' (במדבר א ב). כמה שקים, שנאמר וצבאו ופקודיהם (שם ב ד), כמה מדות, שנאמר פקוד כל בכור זכר.