give someone what for vs rake someone over the coals

give someone what for

verb
  • To punish; to rebuke. 

rake someone over the coals

verb
  • To berate someone at length, usually from a position of authority or moral authority. 

How often have the words give someone what for and rake someone over the coals occurred in a corpus of books? (source: Google Ngram Viewer )