So the king said to Joab and the commanders of the army, "Take a census of all the tribes of Israel--from Dan in the north to Beersheba in the south--so I may know how many people there are."