Satan decided to cause trouble for Israel by making David think it was a good idea to find out how many people there were in Israel and Judah.