code: public long getCount(E e) {
      if (counters.containsKey(e)) {
        return counters.get(e).getCount();
      } else {
        return 0l;
      }
    }
docs: Get count for counter associated with enum value passed.
  @param e Counter to query.
  @return the count for this counter.