keep company with vs set one’s cap

keep company with

set one’s cap

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