defecate vs take a shit

defecate

verb
  • To excrete feces from one's bowels. 

take a shit

verb
  • To defecate. 

  • To fail or malfunction. 

How often have the words defecate and take a shit occurred in a corpus of books? (source: Google Ngram Viewer )