cdm/src/main/java/ucar/nc2/util/Counters.java
public boolean count(String name, Comparable value) {
    Counter counter = map.get(name);
    if (counter == null) {
      counter = add(name);
    }
    return counter.count(value);
  }
public boolean count(String name, Comparable value) {
    Counter counter = map.get(name);
    if (counter == null) {
      counter = add(name);
    }
    return counter.count(value);
  }
Add value to the named counter.
Add counter if it doesnt already exist.
@return true if its a new value, not seen before.