put a sock in it vs shut one's trap

put a sock in it

verb
  • To stop talking; to be quiet; to shut one's mouth. 

shut one's trap

verb
  • To stop talking; to be quiet. 

How often have the words put a sock in it and shut one's trap occurred in a corpus of books? (source: Google Ngram Viewer )