functioning as vs serving as

functioning as

serving as

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