ally oneself with vs take up the cudgels for

ally oneself with

take up the cudgels for

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