code: public void setCount(E key, double count) {
      if (tempMDouble == null) {
        //System.out.println("creating mdouble");
        tempMDouble = new MutableDouble();
      }
      //System.out.println("setting mdouble");
      tempMDouble.set(count);
      //System.out.println("putting mdouble in map");
      tempMDouble = map.put(key, tempMDouble);
      //System.out.println("placed mDouble in map");
  
      totalCount += count;
      if (tempMDouble != null) {
        totalCount -= tempMDouble.doubleValue();
      }
    }
docs: {@inheritDoc}