in days of yore vs on a former occasion

in days of yore

on a former occasion

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