congratulate oneself vs pat oneself on the back

congratulate oneself

pat oneself on the back

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