egoism vs ostentation

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. 

ostentation

noun
  • Ambitious display; vain show; display intended to excite admiration or applause. 

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