congratulate vs take hat off to

congratulate

verb
  • To consider oneself fortunate in some matter. 

  • To express one’s sympathetic pleasure or joy to the person(s) it is felt for. 

take hat off to

How often have the words congratulate and take hat off to occurred in a corpus of books? (source: Google Ngram Viewer )