ingratiate oneself with vs take off hat to

ingratiate oneself with

take off hat to

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