cast to long in mapreduce metrics emitter instead of int