act as substitute vs do something in someone's stead

act as substitute

do something in someone's stead

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