beforehand vs by and by

beforehand

adv
  • At an earlier or preceding time. 

by and by

adv
  • After a short time. 

  • After an indefinite period. 

noun
  • Heaven; the hereafter. Usually preceded with "the sweet." 

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