a taste of one's own medicine vs getting even

a taste of one's own medicine

getting even

How often have the words a taste of one's own medicine and getting even occurred in a corpus of books? (source: Google Ngram Viewer )