hanger-on vs teacher’s pet

hanger-on

noun
  • Someone who hangs on, or sticks to, a person, place, or service. 

  • An onsetter. 

teacher’s pet

How often have the words hanger-on and teacher’s pet occurred in a corpus of books? (source: Google Ngram Viewer )