functioning as vs in the role of

functioning as

in the role of

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