in the nick of time vs with it

in the nick of time

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

with it

prep
  • Attentive, alert; often encountered in the negative ‘not with it’ - not understanding, not alert 

  • Aware of current trends and fashions. 

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