on one’s last leg vs one foot in the grave

on one’s last leg

one foot in the grave

How often have the words on one’s last leg and one foot in the grave occurred in a corpus of books? (source: Google Ngram Viewer )