by a hair vs somewhat

by a hair

somewhat

noun
  • More or less; a certain quantity or degree; a part, more or less; something. 

  • A person or thing of importance; a somebody. 

adv
  • To a limited extent or degree. 

  • Very. 

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