(directly) opposed to vs contrasting with

(directly) opposed to

contrasting with

How often have the words (directly) opposed to and contrasting with occurred in a corpus of books? (source: Google Ngram Viewer )