resist the temptation to vs stop oneself from

resist the temptation to

stop oneself from

How often have the words resist the temptation to and stop oneself from occurred in a corpus of books? (source: Google Ngram Viewer )