put on thinking cap vs sweat over

put on thinking cap

sweat over

How often have the words put on thinking cap and sweat over occurred in a corpus of books? (source: Google Ngram Viewer )