pin one's hopes on vs swear by

pin one's hopes on

verb
  • To place all one's trust or hope in (someone or something). 

swear by

verb
  • To trust wholeheartedly. 

  • To invoke in an oath; to swear upon. 

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