pat oneself on the back for vs take pride in

pat oneself on the back for

take pride in

How often have the words pat oneself on the back for and take pride in occurred in a corpus of books? (source: Google Ngram Viewer )