contrary to vs counter to

contrary to

prep
  • despite; in opposition to (an assumption, etc.); differently from 

counter to

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