docs: public double remove(E key) {
      totalCount -= getCount(key); // subtract removed count from total (may be 0)
      MutableInteger val = map.remove(key);
      if (val == null) {
        return Double.NaN;
      } else {
        return val.doubleValue();
      }
    }