at great cost vs with much loss

at great cost

with much loss

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