code: public void increment(T item, double amount) {
      counts.put(item, counts.get(item) + amount);
      totalCount += amount;
    }
docs: Increments the occurrence count for {@code item} by
  {@code amount}.
  
  @param item
  @param amount