call it a night vs give up the ghost

call it a night

verb
  • To cease what one has been doing for the night. 

  • To go to bed to sleep. 

give up the ghost

verb
  • To quit; to cease functioning. 

  • To cease clinging to life; to die. 

  • To cede a commitment to or identification with. 

How often have the words call it a night and give up the ghost occurred in a corpus of books? (source: Google Ngram Viewer )