lock someone up vs put behind bars

lock someone up

put behind bars

How often have the words lock someone up and put behind bars occurred in a corpus of books? (source: Google Ngram Viewer )