take the part of vs take the role of

take the part of

take the role of

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