'Return the current reservation count for the resource.'

def count_reserved(self, context, tenant_id):

    reservations = quota_api.get_reservations_for_resources(context, tenant_id, [self.name])
    reserved = reservations.get(self.name, 0)
    return reserved
