lose heart vs throw in the towel

lose heart

verb
  • To despair; to experience reduced morale. 

throw in the towel

verb
  • To quit; to give up. 

How often have the words lose heart and throw in the towel occurred in a corpus of books? (source: Google Ngram Viewer )