costing an arm and a leg vs worth a king's ransom

costing an arm and a leg

worth a king's ransom

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