@Deprecated
  protected static Method retrieveGetCounterWithStringsParams(TaskAttemptContext context)
    throws IOException {
    Method m = null;
    try {
      m = context.getClass().getMethod("getCounter", new Class[] { String.class, String.class });
    } catch (SecurityException e) {
      throw new IOException("Failed test for getCounter", e);
    } catch (NoSuchMethodException e) {
      // Ignore
    }
    return m;
  }
In new mapreduce APIs, TaskAttemptContext has two getCounter methods Check if
getCounter(String, String) method is available.
@return The getCounter method or null if not available.
@deprecated since 2.4.0 and 2.3.2, will be removed in 4.0.0
hbase-mapreduce/src/main/java/org/apache/hadoop/hbase/mapreduce/TableRecordReaderImpl.java