holier-than-thou vs moralizing

holier-than-thou

adj
  • Hypocritically or self-righteously pious; sanctimonious. 

moralizing

noun
  • The behaviour of one who moralizes. 

How often have the words holier-than-thou and moralizing occurred in a corpus of books? (source: Google Ngram Viewer )