formerly vs on a former occasion

formerly

adv
  • at some time in the past 

  • previously; once 

on a former occasion

How often have the words formerly and on a former occasion occurred in a corpus of books? (source: Google Ngram Viewer )