count num events