def METHOD_NAME(self, info, **kwargs):
    try:
        # DjangoConnectionField sets the length already
        return self.length
    except AttributeError:
        if isinstance(self.iterable, QuerySet):  # pragma: no cover
            return self.iterable.count()
        return len(self.iterable)