code: public float getCount(TimeUnit unit) {
      int ord = unit.ordinal;
      if (counts[ord] == 0) {
        return 0;
      }
      return (counts[ord] - 1)/1000f;
    }
docs: Returns the count for the specified unit.  If the
  unit is not set, returns 0.
  @param unit the unit to test
  @return the count