Vomiting can throw it off (so, drinking too much and puking, or illness, or bulimia, or anything that causes someone to chuck up, can make it ineffective).
Also, even if the correct number of pills are missing, it doesn't mean the person was taking them correctly. I know way too many girls who...