in the nick of time vs unhappily

in the nick of time

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

unhappily

adv
  • Through evil fate or chance; wretchedly. 

  • Without happiness; sadly. 

  • Unfortunately; regrettably. 

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