deter vs knock on wood

deter

verb
  • To persuade someone not to do something; to discourage. 

  • To prevent something from happening. 

  • To distract someone from something. 

knock on wood

verb
  • To take a customary action to ward off some misfortune that is believed to be attracted by a presumptuous statement. 

intj
  • Hopefully; a self-directive to undertake the customary action to ward off bad luck. 

How often have the words deter and knock on wood occurred in a corpus of books? (source: Google Ngram Viewer )