formerly vs used to be

formerly

adv
  • at some time in the past 

  • previously; once 

used to be

How often have the words formerly and used to be occurred in a corpus of books? (source: Google Ngram Viewer )