gain mastery vs get down pat

gain mastery

get down pat

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