pay homage to vs take one's hat off to

pay homage to

verb
  • to show honor or respect to; to honor 

take one's hat off to

verb
  • To praise or thank; to congratulate. 

  • To remove one's hat as a sign of respect to. 

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