done for vs on one’s last leg

done for

adj
  • Doomed; without hope of recovery. 

on one’s last leg

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