be beside oneself with joy vs be cock-a-hoop

be beside oneself with joy

be cock-a-hoop

How often have the words be beside oneself with joy and be cock-a-hoop occurred in a corpus of books? (source: Google Ngram Viewer )