code: public int getCount(T obj) {
          int objIndex = (allowNewIndices) 
              ? objectIndices.index(obj)
              : objectIndices.find(obj);
          return (objIndex < 0) ? 0 : indexToCount.get(objIndex);
      }
docs: Returns the number of times the specified object has been seen by this
  counter.