go off one’s rocker vs lose one’s cool

go off one’s rocker

lose one’s cool

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