nipping in the bud vs putting an end/stop to

nipping in the bud

putting an end/stop to

How often have the words nipping in the bud and putting an end/stop to occurred in a corpus of books? (source: Google Ngram Viewer )