thereby vs therein

thereby

adv
  • By it; by that; by that means, or as a consequence of that. 

therein

adv
  • in that; in that place; in him/her/it. 

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