frightened out of one's wits vs shitting bricks

frightened out of one's wits

shitting bricks

How often have the words frightened out of one's wits and shitting bricks occurred in a corpus of books? (source: Google Ngram Viewer )