pin one's hope on vs swear by

pin one's hope on

swear by

verb
  • To trust wholeheartedly. 

  • To invoke in an oath; to swear upon. 

How often have the words pin one's hope on and swear by occurred in a corpus of books? (source: Google Ngram Viewer )