pig version of the GenerateStatistics MapReduce job