give someone a taste of their own medicine vs take reprisals against

give someone a taste of their own medicine

take reprisals against

How often have the words give someone a taste of their own medicine and take reprisals against occurred in a corpus of books? (source: Google Ngram Viewer )