apply oneself to vs have a stab at

apply oneself to

have a stab at

How often have the words apply oneself to and have a stab at occurred in a corpus of books? (source: Google Ngram Viewer )