cogitate vs rack brains

cogitate

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

  • To consider, to devise. 

rack brains

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