expiring vs giving up the ghost

expiring

adj
  • Ending, terminating, dying. 

giving up the ghost

How often have the words expiring and giving up the ghost occurred in a corpus of books? (source: Google Ngram Viewer )