ally oneself with vs be in favor of

ally oneself with

be in favor of

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