code: public void setCounts(Collection<E> keys, int count) {
      for (E key : keys) {
        setCount(key, count);
      }
    }
docs: Sets the current count for each of the given keys. This will wipe out
  any existing counts for these keys.
  <p/>
  To add to the counts of a collection of objects instead of replacing them,
  use {@link #incrementCounts(Collection,int)}.