giving up the ghost vs on the point of death

giving up the ghost

on the point of death

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