ally (oneself) with vs be on the side of

ally (oneself) with

be on the side of

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