def get_batch_event_count(batch_id):
    """
        Return the count of events.

        :param batch_id:
            The batch identifier for the batch to operate on.

        :returns:
            The number of events in the batch.
            If async, a Deferred is returned instead.
        """
