act as deputy vs substitute for

act as deputy

substitute for

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