put mind to vs rack one’s brains

put mind to

rack one’s brains

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