ally (oneself) with vs be loyal to

ally (oneself) with

be loyal to

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