in someone's bad books vs out of favor

in someone's bad books

out of favor

How often have the words in someone's bad books and out of favor occurred in a corpus of books? (source: Google Ngram Viewer )