curmudgeon vs pessimist

curmudgeon

noun
  • An ill-tempered person full of stubborn ideas or opinions. 

pessimist

noun
  • Someone who habitually expects the worst outcome; one who looks on the dark side of things. 

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