detained at Her Majesty's pleasure vs held prisoner

detained at Her Majesty's pleasure

held prisoner

How often have the words detained at Her Majesty's pleasure and held prisoner occurred in a corpus of books? (source: Google Ngram Viewer )