This episode is part 32 in a study of the kings of Israel and Judah. David decides to take a census and the whole country suffers. Not because God is against counting things