ham shank vs onanism

ham shank

noun
  • A wank; an act of masturbation. 

onanism

noun
  • Masturbation. 

  • Ejaculating outside the vagina during intercourse; (the performing of) coitus interruptus. 

How often have the words ham shank and onanism occurred in a corpus of books? (source: Google Ngram Viewer )