in a bad way vs in a jam

in a bad way

prep
  • Doing badly; in a state of ill health or misfortune. 

in a jam

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