def METHOD_NAME(self, indices):
    """Return the number of tokens for a set of positions defined by indices.
    This value is used to enforce ``--max-tokens`` during batching."""
    raise NotImplementedError