be ashamed of vs with one's tail between one's legs

be ashamed of

with one's tail between one's legs

How often have the words be ashamed of and with one's tail between one's legs occurred in a corpus of books? (source: Google Ngram Viewer )