as a substitute for vs as contrasted with

as a substitute for

as contrasted with

How often have the words as a substitute for and as contrasted with occurred in a corpus of books? (source: Google Ngram Viewer )