changes for running on Hadoop 2.4.0

I have made some minor changes to run on Hadoop 2.4.0, tested on both in-house cluster and EMR. The problem is coming from deprecated `findCounter` method.