marvel vs rack one’s brains

marvel

noun
  • That which causes wonder; a prodigy; a miracle. 

verb
  • To become filled with wonderment or admiration; to be amazed at something. 

rack one’s brains

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