flogging vs self-punishment

flogging

noun
  • Infliction of punishment by dealing blows or whipping. 

self-punishment

noun
  • The act of punishing oneself. 

How often have the words flogging and self-punishment occurred in a corpus of books? (source: Google Ngram Viewer )