bang someone up vs detain at Her Majesty's pleasure

bang someone up

detain at Her Majesty's pleasure

How often have the words bang someone up and detain at Her Majesty's pleasure occurred in a corpus of books? (source: Google Ngram Viewer )