gratify vs put someone's nose out of joint

gratify

put someone's nose out of joint

How often have the words gratify and put someone's nose out of joint occurred in a corpus of books? (source: Google Ngram Viewer )