having problems vs in a jam

having problems

in a jam

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