counteract vs go counter to

counteract

noun
  • An action performed in opposition to another action. 

verb
  • To have a contrary or opposing effect or force on 

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

go counter to

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