def count(self, context, resource, *args, **kwargs):

        # Get the resource
        res = self._resources.get(resource)
        if not res or not hasattr(res, 'count'):
            raise exception.QuotaResourceUnknown(unknown=[resource])

        return res.count(context, *args, **kwargs)
See: L{channel.SSHChannel}
dataset/ETHPy150Open openstack/nova/nova/quota.py/QuotaEngine.count--crossover with--dataset/ETHPy150Open twisted/twisted/twisted/conch/ssh/forwarding.py/SSHConnectForwardingChannel.dataReceived