have one’s way vs have upper hand

have one’s way

have upper hand

How often have the words have one’s way and have upper hand occurred in a corpus of books? (source: Google Ngram Viewer )