sermon vs treatise

sermon

noun
  • Religious discourse; a written or spoken address on a religious or moral matter. 

  • A lengthy speech of reproval. 

treatise

noun
  • A formal, usually lengthy, systematic discourse on some subject. 

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