counteract vs ward off

counteract

verb
  • To deliberately act in opposition to, to thwart or frustrate 

  • To have a contrary or opposing effect or force on 

noun
  • An action performed in opposition to another action. 

ward off

verb
  • To avert or prevent. 

  • To parry, or turn aside. 

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