egoist vs optimist

egoist

noun
  • An advocate of egoism. 

  • An egotist (person who talks excessively about themself). 

  • An egocentric or self-centered person. 

optimist

noun
  • a person who expects a favourable outcome 

  • a believer in optimism 

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