be capable of vs have the ability to

be capable of

have the ability to

How often have the words be capable of and have the ability to occurred in a corpus of books? (source: Google Ngram Viewer )