just what was ordered vs that’s the ticket

just what was ordered

that’s the ticket

How often have the words just what was ordered and that’s the ticket occurred in a corpus of books? (source: Google Ngram Viewer )