by a piece of luck vs by coincidence

by a piece of luck

by coincidence

How often have the words by a piece of luck and by coincidence occurred in a corpus of books? (source: Google Ngram Viewer )