knowing how many beans make five vs with all one's wits about one

knowing how many beans make five

with all one's wits about one

How often have the words knowing how many beans make five and with all one's wits about one occurred in a corpus of books? (source: Google Ngram Viewer )