code: public double removeKey(T element) {
          AtomicDouble v = map.remove(element);
          dirty.set(true);
  
          if (v != null)
              return v.get();
          else
              return 0.0;
      }
docs: This method removes given key from counter
  
  @param element
  @return counter value