doing time vs in prison

doing time

in prison

prep
  • imprisoned; in a prison as a convict 

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