The counting of the firstborn Israelites marks a unique and completing step in organizing the camp in the desert, representing a profound shift in spiritual responsibilities. Unlike the earlier general census, which was meant for military organization and only included adults, this count is based entirely on the status of being a firstborn. As a result, it includes everyone from the elderly down to small infants [ביאור שטיינזלץ]. The instruction is framed as a supplementary and temporary measure, designed to give practical, outward expression to the process of swapping the firstborns for the Levites [רש״ר הירש].
The foundation of this exchange lies in God's love for Israel. In the natural world, a firstborn donkey is redeemed with a lamb. During the exodus from Egypt, God applied this principle on a grand scale, treating the Egyptians as the donkeys and the Israelites as the saved lamb, thereby sanctifying the Israelite firstborns [רא״ש]. However, following the sin of the Golden Calf, the firstborns lost their original holy status, making it necessary to replace them with the Levites [רש״ר הירש, שפתי כהן].
To be included in this count, a firstborn had to be at least one month old. Reaching this age removed any doubt regarding the infant's viability, establishing them as a living child [רש״י]. There is a subtle contrast here with the counting of the Levites. The Levites were tallied through direct Divine speech, where no doubt exists. The firstborns, however, were counted by Moses himself. Because he was relying on human observation, he had to wait until the thirty-day mark passed to ensure the child was entirely viable [ברכת אשר על התורה].
The method of counting required a specific, individual record of names. While the Levite census involved Moses counting the general total and Heaven determining the exact individual count, Moses was instructed here to personally record each firstborn's name [מלבי״ם]. To avoid the danger of a plague that often accompanies counting people directly, the census was conducted using slips of paper with names written on them. In the general census, individuals handed in their own slips to prevent forgery, but such precautions were unnecessary in this instance [העמק דבר]. Furthermore, the incredibly wide age range of those counted, spanning from infants to the elderly, served to protect the group from the evil eye [שפתי כהן].
This individual registry carried a dual psychological and spiritual weight. On one hand, hearing his name called out forced each firstborn to personally confront the loss of his right to perform the holy service, a direct consequence of the Golden Calf [רש״ר הירש]. On the other hand, the very act of having their names spoken by Moses granted them a renewed sense of holiness and spiritual elevation. This infusion of holiness properly prepared them to be exchanged with the sacred tribe of Levi [שפתי כהן].