Use this API to count cspolicylabel_cspolicy_binding resources configued on NetScaler.
179692
public static long count(nitro_service service, String labelname) throws Exception{
		cspolicylabel_cspolicy_binding obj = new cspolicylabel_cspolicy_binding();
		obj.set_labelname(labelname);
		options option = new options();
		option.set_count(true);
		cspolicylabel_cspolicy_binding response[] = (cspolicylabel_cspolicy_binding[]) obj.get_resources(service,option);
		if (response != null) {
			return response[0].__count;
		}
		return 0;
	}
609735
public static responderpolicylabel_responderpolicy_binding[] get(nitro_service service, String labelname) throws Exception{
		responderpolicylabel_responderpolicy_binding obj = new responderpolicylabel_responderpolicy_binding();
		obj.set_labelname(labelname);
		responderpolicylabel_responderpolicy_binding response[] = (responderpolicylabel_responderpolicy_binding[]) obj.get_resources(service);
		return response;
	}
1035420
public static csvserver_cspolicy_binding[] get(nitro_service service, String name) throws Exception{
		csvserver_cspolicy_binding obj = new csvserver_cspolicy_binding();
		obj.set_name(name);
		csvserver_cspolicy_binding response[] = (csvserver_cspolicy_binding[]) obj.get_resources(service);
		return response;
	}
493569
public static long count(nitro_service service, Long clid) throws Exception{
		clusterinstance_clusternode_binding obj = new clusterinstance_clusternode_binding();
		obj.set_clid(clid);
		options option = new options();
		option.set_count(true);
		clusterinstance_clusternode_binding response[] = (clusterinstance_clusternode_binding[]) obj.get_resources(service,option);
		if (response != null) {
			return response[0].__count;
		}
		return 0;
	}
725136
public static autoscalepolicy_nstimer_binding[] get(nitro_service service, String name) throws Exception{
		autoscalepolicy_nstimer_binding obj = new autoscalepolicy_nstimer_binding();
		obj.set_name(name);
		autoscalepolicy_nstimer_binding response[] = (autoscalepolicy_nstimer_binding[]) obj.get_resources(service);
		return response;
	}
824475
public static long count_filtered(nitro_service service, String filter) throws Exception{
		service obj = new service();
		options option = new options();
		option.set_count(true);
		option.set_filter(filter);
		service[] response = (service[]) obj.getfiltered(service, option);
		if (response != null) {
			return response[0].__count;
		}
		return 0;
	}
999466
public static authorizationpolicy_csvserver_binding[] get(nitro_service service, String name) throws Exception{
		authorizationpolicy_csvserver_binding obj = new authorizationpolicy_csvserver_binding();
		obj.set_name(name);
		authorizationpolicy_csvserver_binding response[] = (authorizationpolicy_csvserver_binding[]) obj.get_resources(service);
		return response;
	}
710289
public static long count_filtered(nitro_service service, String name, String filter) throws Exception{
		rewritepolicy_rewritepolicylabel_binding obj = new rewritepolicy_rewritepolicylabel_binding();
		obj.set_name(name);
		options option = new options();
		option.set_count(true);
		option.set_filter(filter);
		rewritepolicy_rewritepolicylabel_binding[] response = (rewritepolicy_rewritepolicylabel_binding[]) obj.getfiltered(service, option);
		if (response != null) {
			return response[0].__count;
		}
		return 0;
	}
1342213
public static cachepolicy_csvserver_binding[] get(nitro_service service, String policyname) throws Exception{
		cachepolicy_csvserver_binding obj = new cachepolicy_csvserver_binding();
		obj.set_policyname(policyname);
		cachepolicy_csvserver_binding response[] = (cachepolicy_csvserver_binding[]) obj.get_resources(service);
		return response;
	}
53968
public static lbvserver_scpolicy_binding[] get(nitro_service service, String name) throws Exception{
		lbvserver_scpolicy_binding obj = new lbvserver_scpolicy_binding();
		obj.set_name(name);
		lbvserver_scpolicy_binding response[] = (lbvserver_scpolicy_binding[]) obj.get_resources(service);
		return response;
	}
217675
public static cspolicy_crvserver_binding[] get(nitro_service service, String policyname) throws Exception{
		cspolicy_crvserver_binding obj = new cspolicy_crvserver_binding();
		obj.set_policyname(policyname);
		cspolicy_crvserver_binding response[] = (cspolicy_crvserver_binding[]) obj.get_resources(service);
		return response;
	}
550309
public static cspolicy_cspolicylabel_binding[] get(nitro_service service, String policyname) throws Exception{
		cspolicy_cspolicylabel_binding obj = new cspolicy_cspolicylabel_binding();
		obj.set_policyname(policyname);
		cspolicy_cspolicylabel_binding response[] = (cspolicy_cspolicylabel_binding[]) obj.get_resources(service);
		return response;
	}
82313
public static cspolicy_csvserver_binding[] get(nitro_service service, String policyname) throws Exception{
		cspolicy_csvserver_binding obj = new cspolicy_csvserver_binding();
		obj.set_policyname(policyname);
		cspolicy_csvserver_binding response[] = (cspolicy_csvserver_binding[]) obj.get_resources(service);
		return response;
	}
1294853
public static long count(nitro_service service, String crlname) throws Exception{
		sslcrl_serialnumber_binding obj = new sslcrl_serialnumber_binding();
		obj.set_crlname(crlname);
		options option = new options();
		option.set_count(true);
		sslcrl_serialnumber_binding response[] = (sslcrl_serialnumber_binding[]) obj.get_resources(service,option);
		if (response != null) {
			return response[0].__count;
		}
		return 0;
	}
814151
public static long count_filtered(nitro_service service, String viewname, String filter) throws Exception{
		dnsview_dnspolicy_binding obj = new dnsview_dnspolicy_binding();
		obj.set_viewname(viewname);
		options option = new options();
		option.set_count(true);
		option.set_filter(filter);
		dnsview_dnspolicy_binding[] response = (dnsview_dnspolicy_binding[]) obj.getfiltered(service, option);
		if (response != null) {
			return response[0].__count;
		}
		return 0;
	}
696807
public static long count(nitro_service service, String name) throws Exception{
		netbridge_nsip6_binding obj = new netbridge_nsip6_binding();
		obj.set_name(name);
		options option = new options();
		option.set_count(true);
		netbridge_nsip6_binding response[] = (netbridge_nsip6_binding[]) obj.get_resources(service,option);
		if (response != null) {
			return response[0].__count;
		}
		return 0;
	}
549178
public static crvserver_cspolicy_binding[] get(nitro_service service, String name) throws Exception{
		crvserver_cspolicy_binding obj = new crvserver_cspolicy_binding();
		obj.set_name(name);
		crvserver_cspolicy_binding response[] = (crvserver_cspolicy_binding[]) obj.get_resources(service);
		return response;
	}