pay court to vs set one’s cap

pay court to

set one’s cap

How often have the words pay court to and set one’s cap occurred in a corpus of books? (source: Google Ngram Viewer )