flatter oneself on vs take pride in

flatter oneself on

take pride in

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