public static long count_filtered(nitro_service service, lbmonbindings obj, String filter) throws Exception{
		options option = new options();
		option.set_count(true);
		option.set_filter(filter);
		option.set_args(nitro_util.object_to_string_withoutquotes(obj));
		lbmonbindings[] response = (lbmonbindings[]) obj.getfiltered(service, option);
		if (response != null) {
			return response[0].__count;
		}
		return 0;
	}
public static long count_filtered ( nitro_service service , lbmonbindings obj , String filter ) throws Exception { options option = new options ( ) ; option . set_count ( true ) ; option . set_filter ( filter ) ; option . set_args ( nitro_util . object_to_string_withoutquotes ( obj ) ) ; lbmonbindings [ ] response = ( lbmonbindings [ ] ) obj . getfiltered ( service , option ) ; if ( response != null ) { return response [ 0 ] . __count ; } return 0 ; }
Use this API to count filtered the set of lbmonbindings resources.
filter string should be in JSON format.eg: "port:80,servicetype:HTTP".