having direct bearing on vs pertaining to

having direct bearing on

pertaining to

How often have the words having direct bearing on and pertaining to occurred in a corpus of books? (source: Google Ngram Viewer )