happily vs in the nick of time

happily

adv
  • By good chance; fortunately, successfully. 

  • With good will; in all happiness; willingly. 

  • In a happy or cheerful manner; with happiness. 

in the nick of time

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

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