hard to come by vs not to be had

hard to come by

not to be had

How often have the words hard to come by and not to be had occurred in a corpus of books? (source: Google Ngram Viewer )