do penance vs take one’s medicine

do penance

take one’s medicine

How often have the words do penance and take one’s medicine occurred in a corpus of books? (source: Google Ngram Viewer )