doing time vs held captive

doing time

held captive

How often have the words doing time and held captive occurred in a corpus of books? (source: Google Ngram Viewer )