consoling vs deterrent

consoling

noun
  • The act by which somebody is consoled. 

deterrent

noun
  • Something that deters. 

adj
  • Serving to deter, preventing something from happening. 

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