The king said to Joab the captain of the host, who was with him, Go now back and forth through all the tribes of Israel, from Dan even to Beersheba, and number you the people, that I may know the sum of the people.