static int CountRedApples(int total, Apple apple) { if (apple.Colour == Colour.Red) { total += apple.Count(); } return(total); }