in times of yore vs on a former occasion

in times of yore

on a former occasion

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