in a jam vs in desperate straits

in a jam

in desperate straits

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