But the king commanded Joab and the commanders of the army, so they left the king to count the Israelites.