pat on the back vs rap over the knuckles

pat on the back

noun
  • Praise, congratulations. 

verb
  • To praise or congratulate. 

rap over the knuckles

How often have the words pat on the back and rap over the knuckles occurred in a corpus of books? (source: Google Ngram Viewer )