David sins in taking a census of the people of Israel.