class_docstr: A collection of EventRecord instances that can be queried by event specification.
docstr: Support len() operator.
docstr_tok: ["Support","len","(",")","operator","."]
code: def __len__(self):
      """Support len() operator."""
      return len(self.events)
  
file_path: maze/maze/core/events/event_collection.py
imports: from collections import deque
  from typing import Callable, Iterable, MutableSequence, Union
  from maze.core.events.event_service import EventRecord
label_desc: Use image node_id 5 for calling the EventCollection obj's underlying member method code with example usage: obj.__len__() and returns: len