go haywire vs lose one’s cool

go haywire

lose one’s cool

How often have the words go haywire and lose one’s cool occurred in a corpus of books? (source: Google Ngram Viewer )