in ribbons vs on its last legs

in ribbons

on its last legs

How often have the words in ribbons and on its last legs occurred in a corpus of books? (source: Google Ngram Viewer )