David asked Joab to count the people in all the tribes of Israel to determine the total number of men fit for battle. [24:1-2]