in the nick of time vs unluckily

in the nick of time

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

unluckily

adv
  • Without luck; unfortunately 

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