So the king said to Joab, the commander of his army, “Go through all the tribes of Israel from Dan to Beer-sheba and register the troops so I can know their number.”