worth a king's ransom vs worth its weight in gold

worth a king's ransom

worth its weight in gold

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