@classmethod
    def _count_path(cls, parentid=None):
        if parentid is not None:
            return "%s/%s/%s/count" % (cls.parent_resource, parentid, cls.resource_name)
        elif cls.count_resource is not None:
            return "%s/count" % (cls.count_resource)
        else:
            # misconfiguration
            raise NotImplementedError('Count not implemented for this resource.')
dataset/ETHPy150Open bigcommerce/bigcommerce-api-python/bigcommerce/resources/base.py/CountableApiSubResource._count_path/original