'Census' in the Bible
Later, God's anger blazed forth against Israel, so he incited David to move against them by telling him, "Go take a census of Israel and Judah."
So the king ordered Joab, commander of the special forces, who was with him, "Go throughout the tribes of Israel from Dan to Beer-sheba and take a census of the people so I can be made aware of the total number."
But the king's order overruled Joab and the commanders of the special forces, so Joab and the commanders of the special forces left David's presence to take a census of the people of Israel.
So when they had gone about through all the land [taking the census], they came to Jerusalem at the end of nine months and twenty days.
David’s conscience troubled him after he had taken a census of the troops. He said to the Lord, “I have sinned greatly in what I’ve done. Now, Lord, because I’ve been very foolish, please take away Your servant’s guilt.”