at great cost vs with great loss

at great cost

with great loss

How often have the words at great cost and with great loss occurred in a corpus of books? (source: Google Ngram Viewer )