`np.sum(self.events[:, 2] == v)` would be more efficient