do duty vs take over from

do duty

take over from

How often have the words do duty and take over from occurred in a corpus of books? (source: Google Ngram Viewer )