Which of the following best illustrates a compulsion?

mentally counting backward from 1,000
persistent fear of germs
thoughts of harming a neighbor
falsely believing that a spouse has been cheating