expiring vs on one's last legs

expiring

adj
  • Ending, terminating, dying. 

on one's last legs

prep
  • About to die. 

  • About to lose viability or become defunct. 

How often have the words expiring and on one's last legs occurred in a corpus of books? (source: Google Ngram Viewer )