function as vs play the part of

function as

play the part of

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