Cache event count.