becoming obsolete vs on its last legs

becoming obsolete

on its last legs

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