on rare occasions vs only now and then

on rare occasions

only now and then

How often have the words on rare occasions and only now and then occurred in a corpus of books? (source: Google Ngram Viewer )