in a jam vs in dire straits

in a jam

in dire straits

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