ally (oneself) with vs take the side of

ally (oneself) with

take the side of

How often have the words ally (oneself) with and take the side of occurred in a corpus of books? (source: Google Ngram Viewer )