fulfill the function of vs function as

fulfill the function of

function as

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