by a hair vs not quite

by a hair

not quite

adv
  • not exactly but slightly 

How often have the words by a hair and not quite occurred in a corpus of books? (source: Google Ngram Viewer )