have occasion for/to vs stand in need of

have occasion for/to

stand in need of

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