pay court to vs try to get someone on one's side

pay court to

try to get someone on one's side

How often have the words pay court to and try to get someone on one's side occurred in a corpus of books? (source: Google Ngram Viewer )