code: public static Counter getCounter(TaskInputOutputContext context, Enum<?> key) {
      return (Counter) invoke(GET_COUNTER_ENUM_METHOD, context, key);
    }
docs: Hadoop 1 & 2 compatible context.getCounter()
  @return {@link TaskInputOutputContext#getCounter(Enum key)}