having problems vs in dire straits

having problems

in dire straits

How often have the words having problems and in dire straits occurred in a corpus of books? (source: Google Ngram Viewer )