cogitate vs rack one’s brains

cogitate

verb
  • To meditate, to ponder, to think deeply. 

  • To consider, to devise. 

rack one’s brains

How often have the words cogitate and rack one’s brains occurred in a corpus of books? (source: Google Ngram Viewer )