hammer away at vs rack brains

hammer away at

rack brains

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