comprehend vs gain mastery

comprehend

verb
  • To understand or grasp fully and thoroughly. 

gain mastery

How often have the words comprehend and gain mastery occurred in a corpus of books? (source: Google Ngram Viewer )