(every) once in a while vs on occasion(s)

(every) once in a while

on occasion(s)

How often have the words (every) once in a while and on occasion(s) occurred in a corpus of books? (source: Google Ngram Viewer )