bad apple vs rotten apple

bad apple

noun
  • A person who is not wholesome, honest, or trustworthy, especially one who has an adverse influence on others. 

rotten apple

noun
  • A bad person, especially one who has a corrupting influence on others: a bad apple. 

How often have the words bad apple and rotten apple occurred in a corpus of books? (source: Google Ngram Viewer )