Nehemiah 7:5 says, And my God put into mine heart to gather together the nobles, and the rulers, and the people, that they might be reckoned by genealogy. And I found a register of the genealogy of them which came up at the first, and found written therein, Nehemiah said that God put it in his heart to gather the leaders of the people and number the people by genealogy. He also said he found a book that contained the first genealogies. As I have stated before, I don’t believe there is anything wrong with counting the number of people in a worship service as long a we are doing so under God's guidance and not out of pride. I don’t believe that we as Christians need to trace our genealogy for spiritual reasons though, since we are all children of God because of our faith in Jesus Christ. Also, we know that God has preserved His written word for us throughout the ages, so we should not be surprised that He had preserved it for Nehemiah at that time.
Verse six adds, These are the children of the province, that went up out of the captivity, of those that had been carried away, whom Nebuchadnezzar the king of Babylon had carried away, and came again to Jerusalem and to Judah, every one unto his city; Nehemiah said those he was numbering were the ones who had been carried away captive by Nebuchadnezzar and had come again to Judah, all to their own province. We were once taken away captive to sin, but through faith in Jesus Christ, we can become a part of the kingdom of God. I personally believe that when we are born, we are free of sin, but it is only when we are old enough to know right from wrong and make the conscious decision to sin that we become guilty and separated from God, so when we accept Jesus, we are in truth returning to God’s kingdom. I know many people may disagree with this, but to me, if we are born guilty of sin and die before we are old enough to make a decision to follow Jesus Christ, we would be doomed. Matthew Henry says the numbers in Ezra and the numbers in Nehemiah don’t always agree, but that may be because they were counted at different times, but the total number is the same, except for the singing men, which Ezra listed as two hundred and Nehemiah listed as two hundred forty-five. He also says that the numbers may not be important to us, but they were important then to see what the number of people had been at first compared to what it was now. Most of the rest of the chapter simply lists the numbers. We should want to know if the number of Christians is growing or shrinking, especially as a percentage of the total population, to see how effective we are being in reaching people with the gospel.