self-congratulation vs vainglory

self-congratulation

noun
  • self-satisfied congratulation of oneself for one's achievements or situation 

vainglory

noun
  • Boastful, unwarranted pride in one's accomplishments or qualities. 

  • A regarding of oneself with undue favor. 

  • Vain, ostentatious display. 

  • Excessive vanity. 

verb
  • To boast; to act in a vain manner. 

How often have the words self-congratulation and vainglory occurred in a corpus of books? (source: Google Ngram Viewer )