moribund vs on last leg

moribund

noun
  • A person who is near to dying. 

adj
  • Approaching death; about to die; dying; expiring. 

  • Almost obsolete, nearing an end. 

on last leg

How often have the words moribund and on last leg occurred in a corpus of books? (source: Google Ngram Viewer )