exemplary vs serving as a deterrent

exemplary

adj
  • Serving as a warning; monitory. 

  • Providing an example or illustration. 

  • Deserving honour, respect and admiration. 

  • Of such high quality that it should serve as an example to be imitated; ideal, perfect. 

serving as a deterrent

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