in the same way vs the opposite way

in the same way

the opposite way

How often have the words in the same way and the opposite way occurred in a corpus of books? (source: Google Ngram Viewer )