contain vs put a lid on

contain

verb
  • To put constraints upon; to restrain; to confine; to keep within bounds. 

  • To include as a part. 

  • To hold inside. 

  • To have as an element or subset. 

put a lid on

verb
  • To get under control, to prevent (something) from increasing or becoming more of a problem. 

How often have the words contain and put a lid on occurred in a corpus of books? (source: Google Ngram Viewer )