Takes more than just a well trained dog. You need well trained goats, too! Seriously, if the goats aren't used to dogs, they will panic and run. We have a Great Pyr, and she just loves the goats, but they're still nervous around her.
Confidence is that feeling you have right before you do something really stupid.