costing a bomb vs worth a king's ransom

costing a bomb

worth a king's ransom

How often have the words costing a bomb and worth a king's ransom occurred in a corpus of books? (source: Google Ngram Viewer )