be pleased with oneself vs pat oneself on the back

be pleased with oneself

pat oneself on the back

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