in the nick of time vs sadly

in the nick of time

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

sadly

adv
  • In a sad manner; sorrowfully. 

  • Unfortunately, sad to say. 

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