a king's ransom vs a stack

a king's ransom

a stack

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