on its last legs vs past its prime

on its last legs

past its prime

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