have someone in one's hip pocket vs have the upper hand over

have someone in one's hip pocket

have the upper hand over

How often have the words have someone in one's hip pocket and have the upper hand over occurred in a corpus of books? (source: Google Ngram Viewer )