Fix the eventcount method