gaining upon vs to be

gaining upon

to be

How often have the words gaining upon and to be occurred in a corpus of books? (source: Google Ngram Viewer )