Counter MapReduce Code