prevent vs restrict

prevent

verb
  • To stop (an outcome); to keep from (doing something). 

restrict

verb
  • To restrain within boundaries; to limit; to confine 

  • To consider (a function) as defined on a subset of its original domain. 

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