earlier vs in the beginning

earlier

adj
  • occurring previously 

adv
  • previously; before now; sooner 

in the beginning

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