excogitate vs rack brains

excogitate

verb
  • To think over something carefully; to consider fully; cogitate. 

  • To reach as a conclusion through reason or careful thought. 

rack brains

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