in a jam vs up a gum tree

in a jam

up a gum tree

prep
  • In a difficult situation; in a predicament. 

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