egoism vs vainglory

egoism

noun
  • The tendency to think selfishly with exclusive self-interest in mind. 

  • Egotism (tendency to talk excessively about oneself). 

  • The belief that moral behavior should be directed toward one's self-interest only. 

vainglory

noun
  • A regarding of oneself with undue favor. 

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

  • Vain, ostentatious display. 

  • Excessive vanity. 

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

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