in the nick of time vs unfortunately

in the nick of time

prep
  • At the last possible moment; at the last minute. 

unfortunately

adv
  • Happening through bad luck, or because of some unfortunate event. 

  • Used (as a parenthetical word) to express disappointment, compassion, sorrow, regret or grief. 

How often have the words in the nick of time and unfortunately occurred in a corpus of books? (source: Google Ngram Viewer )