code: void setValue(int value) {
      Integer confidence = values.get(value);
      if (confidence == null) {
        confidence = 0;
      }
      confidence++;
      values.put(value, confidence);
    }
docs: Add an occurrence of a value