public static long count(nitro_service service, String policyname) throws Exception{
		cspolicy_cspolicylabel_binding obj = new cspolicy_cspolicylabel_binding();
		obj.set_policyname(policyname);
		options option = new options();
		option.set_count(true);
		cspolicy_cspolicylabel_binding response[] = (cspolicy_cspolicylabel_binding[]) obj.get_resources(service,option);
		if (response != null) {
			return response[0].__count;
		}
		return 0;
	}
public static long count ( nitro_service service , String policyname ) throws Exception { cspolicy_cspolicylabel_binding obj = new cspolicy_cspolicylabel_binding ( ) ; obj . set_policyname ( policyname ) ; options option = new options ( ) ; option . set_count ( true ) ; cspolicy_cspolicylabel_binding response [ ] = ( cspolicy_cspolicylabel_binding [ ] ) obj . get_resources ( service , option ) ; if ( response != null ) { return response [ 0 ] . __count ; } return 0 ; }
Use this API to count cspolicy_cspolicylabel_binding resources configued on NetScaler.