heading for the rocks vs in dire straits

heading for the rocks

in dire straits

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