be in need of vs have occasion to

be in need of

have occasion to

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