acting up vs on its last legs

acting up

on its last legs

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