put heads together vs rack brains

put heads together

verb
  • To collaborate in a mental task, such as generating ideas. 

rack brains

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