mete out punishment to vs rap over the knuckles

mete out punishment to

rap over the knuckles

How often have the words mete out punishment to and rap over the knuckles occurred in a corpus of books? (source: Google Ngram Viewer )