act as a substitute for vs do something in someone's place

act as a substitute for

do something in someone's place

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