act as vs perform the function of

act as

perform the function of

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