gone to pieces vs in a funk

gone to pieces

in a funk

How often have the words gone to pieces and in a funk occurred in a corpus of books? (source: Google Ngram Viewer )