code: public static long count_filtered(nitro_service service, String servicename, filtervalue[] filter) throws Exception{
  		gslbservice_dnsview_binding obj = new gslbservice_dnsview_binding();
  		obj.set_servicename(servicename);
  		options option = new options();
  		option.set_count(true);
  		option.set_filter(filter);
  		gslbservice_dnsview_binding[] response = (gslbservice_dnsview_binding[]) obj.getfiltered(service, option);
  		if (response != null) {
  			return response[0].__count;
  		}
  		return 0;
  	}
docs: Use this API to count the filtered set of gslbservice_dnsview_binding resources.
  set the filter parameter values in filtervalue object.