docs: public void set(T item, long value) {
          MutableLong entry = map.get(item);
          if (entry == null) {
              entry = MutableLong.valueOf(value);
              map.put(item, entry);
              total += value;
          } else {
              total -= entry.value;
              total += value;
              entry.value = value;
          }
      }