about to be punished vs about to take the rap

about to be punished

about to take the rap

How often have the words about to be punished and about to take the rap occurred in a corpus of books? (source: Google Ngram Viewer )