<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def num_events(self):
 """Lazy evaluation of the number of events."""

        if not self._num_events:
            self._num_events = self.coll_handle.count()
        return self._num_events