1 Chronicles 21:2-6
21:2 David told Joab and the leaders of the army, “Go, count the number of warriors from Beer Sheba to Dan. Then bring back a report to me so I may know how many we have.”
21:3 Joab replied, “May the Lord make his army a hundred times larger! My master, O king, do not all of them serve my master? Why does my master want to do this? Why bring judgment on Israel?”
21:4 But the king’s edict stood, despite Joab’s objections. So Joab left and traveled throughout Israel before returning to Jerusalem.
21:5 Joab reported to David the number of warriors. In all Israel there were 1,100,000 sword-wielding soldiers; Judah alone had 470,000 sword-wielding soldiers.
21:6 Now Joab did not number Levi and Benjamin, for the king’s edict disgusted him.