A machine is set to fill the small-size packages of M&M candies with 74 candies per bag. The total sample of bags are revealed as four bags of 72 candies, two bags of 78 candies, three bags of 78 candies, and three bags of 79 candies. To test the hypothesis that the mean candies per bag is 76, how many degrees of freedom are there?