public int getNumberOfLabelsUsed ( ) { if ( labels != null && ! labels . isEmpty ( ) ) return labels . size ( ) ; else return ( ( Long ) ( maxCount + 1 ) ) . intValue ( ) ; }
This method returns number of labels used up to the method s call