avert vs nip in the bud

avert

verb
  • To turn aside or away. 

  • To ward off, or prevent, the occurrence or effects of. 

nip in the bud

verb
  • To stop (something) at an early stage. 

  • To remove a bud [from a plant] to prevent flower and fruit from forming. 

How often have the words avert and nip in the bud occurred in a corpus of books? (source: Google Ngram Viewer )