code: public void setCount(E key, int count) {
      if (tempMInteger == null) {
        tempMInteger = new MutableInteger();
      }
      tempMInteger.set(count);
      tempMInteger = map.put(key, tempMInteger);
  
  
      totalCount += count;
      if (tempMInteger != null) {
        totalCount -= tempMInteger.intValue();
      }
  
    }
docs: Sets the current count for the given key. This will wipe out any existing
  count for that key.
  <p/>
  To add to a count instead of replacing it, use
  {@link #incrementCount(Object,int)}.