King David is moved to count his army