AN: properly initialize event count.