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