do duty vs do something in someone's place

do duty

do something in someone's place

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