Added reduce fucntions for event, Pie type shows event count