So David told Joab and the leaders of the people, "Go throughout all the tribes of Israel, from Dan to Beer-sheba, and take a census of the people so I know how many people there are."