as a by-product vs not by design

as a by-product

not by design

How often have the words as a by-product and not by design occurred in a corpus of books? (source: Google Ngram Viewer )