at death's door vs terminally ill

at death's door

prep
  • About to die; in a life-threatening state of health. 

terminally ill

adj
  • Having an incurable condition that will lead to death. 

How often have the words at death's door and terminally ill occurred in a corpus of books? (source: Google Ngram Viewer )