In a moment of insecurity, David called in Joab, commander of his army, to go throughout the nation of Israel and take a census of the people. Joab saw the evil this would cause and protested, but the will of the king prevailed. It wasn’t until after the census was complete that David realized his guilt. The Prophet Gad confronted him and while he chose his punishment, he also realized that he was to blame, not the people.