One on their descent into Egypt. Concerning Egypt it is written, with seventy souls (did your ancestors go down to Egypt) (Deuteronomy 10:22). And one on their going up, as it is said, And the children of Israel journeyed from Rameses to Succoth, (about six hundred thousand) (Exodus 12:37). And one in the portion of Ki Tisa. And two in the book of Vaydabber (Numbers): one with the standards, and one in the division of the land. And two in the days of Saul, as it is said, And he mustered them in Telaim (1 Samuel 15:4); And he mustered them in Bezek (1 Samuel 11:8). And one in the days of David, as it is said, And Joab gave the sum of the numbering of the people (2 Samuel 24:9). And one on their going up from the exile, as it is said, The whole congregation together was forty-two thousand three hundred and sixty (Ezra 2:64). And one in the age to come, (as it is said,) The flocks shall again pass under the hands of the one who counts them (Jeremiah 33:13).
The Ten Times Israel Was Counted from Egypt to the Age to Come
Midrash Tanchuma Buber, Ki Tisa 8:3
אחת בירידתן למצרים, במצרים כתיב בשבעים נפש [ירדו אבותיך מצרימה] (דברים י כב), ואחת בעלייתן, שנאמר ויסעו בני ישראל מרעמסס סכותה [כשש מאות אלף] (שמות יב לז), ואחת בפרשת כי תשא, ושנים בספר וידבר, אחת בדגלים, ואחת בחילוק הארץ, ושנים בימי שאול, שנאמר ויפקדם בטלאים (ש"א טו ד), ויפקדם בבזק (שם יא ח), ואחת בימי דוד, שנאמר ויתן יואב את מספר מפקד העם (ש"ב כד ט), ואחת בעלייתן מן הגולה, שנאמר כל הקהל כאחד (ארבעת) [ארבע] רבוא [אלפים שלש מאות וששים] (עזרא ב סד), ואחת לעתיד לבא, [שנאמר] עוד תעבורנה הצאן על ידי מונה (ירמיה לג יג),