David’s command to count the people caused God to become angry, so he told David that he had decided to punish the people of Israel.