at one's wits' end vs tearing one's hair out

at one's wits' end

tearing one's hair out

How often have the words at one's wits' end and tearing one's hair out occurred in a corpus of books? (source: Google Ngram Viewer )