code: def count(event_collection, timeframe=None, timezone=None, interval=None, filters=None, group_by=None, order_by=None,
            max_age=None, limit=None):
      _initialize_client_from_environment()
      return _client.count(event_collection=event_collection, timeframe=timeframe, timezone=timezone,
                           interval=interval, filters=filters, group_by=group_by, order_by=order_by,
                           max_age=max_age, limit=limit)