ally (oneself) with vs stand by

ally (oneself) with

stand by

verb
  • To wait in expectation of some event; to be ready. 

  • To support; to continue to support despite things being bad. 

  • To remain loyal or faithful to. 

  • To do nothing. To be inactive in a situation. 

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