code: public void add(Counter<? extends Pair<T>> counter) {
          for (Map.Entry<? extends Pair<T>,Integer> e : counter) {
              count(e.getKey(), e.getValue());
          }
      }
docs: Adds the counts from the provided {@code Counter} to the current counts,
  adding new elements as needed.