Script that computes the success rate of goats