beat a hasty retreat vs go on the lam

beat a hasty retreat

verb
  • To leave as quickly as possible. 

go on the lam

How often have the words beat a hasty retreat and go on the lam occurred in a corpus of books? (source: Google Ngram Viewer )