give someone what for vs mete out punishment to

give someone what for

verb
  • To punish; to rebuke. 

mete out punishment to

How often have the words give someone what for and mete out punishment to occurred in a corpus of books? (source: Google Ngram Viewer )