heading for the rocks vs in a jam

heading for the rocks

in a jam

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