pertaining to vs with reference to

pertaining to

with reference to

How often have the words pertaining to and with reference to occurred in a corpus of books? (source: Google Ngram Viewer )