@classmethod
def count_filtered(cls, service, name, filter_):
    ' Use this API to count the filtered set of vpnvserver_vpnnexthopserver_binding resources.\n\t\tFilter string should be in JSON format.eg: "port:80,servicetype:HTTP".\n\t\t'
    try:
        obj = vpnvserver_vpnnexthopserver_binding()
        obj.name = name
        option_ = options()
        option_.count = True
        option_.filter = filter_
        response = obj.getfiltered(service, option_)
        if response:
            return response[0].__dict__['___count']
        return 0
    except Exception as e:
        raise e
Use this API to count the filtered set of vpnvserver_vpnnexthopserver_binding resources.
Filter string should be in JSON format.eg: "port:80,servicetype:HTTP".
@classmethod
def count_filtered(cls, service, name, filter_):
    ' Use this API to count the filtered set of vpnvserver_vpnnexthopserver_binding resources.\n\t\tFilter string should be in JSON format.eg: "port:80,servicetype:HTTP".\n\t\t'
    try:
        obj = vpnvserver_vpnnexthopserver_binding()
        obj.name = name
        option_ = options()
        option_.count = True
        option_.filter = filter_
        response = obj.getfiltered(service, option_)
        if response:
            return response[0].__dict__['___count']
        return 0
    except Exception as e:
        raise e