as a substitute for vs in someone's stead

as a substitute for

in someone's stead

How often have the words as a substitute for and in someone's stead occurred in a corpus of books? (source: Google Ngram Viewer )