TezCounterGroup g = new TezCounterGroup();
g.name = new Utf8(group.getName());
g.displayName = new Utf8(group.getDisplayName());
g.counts = new ArrayList<TezCounter>(group.size());
for (org.apache.tez.common.counters.TezCounter counter : group) {
TezCounter c = new TezCounter();
c.name = new Utf8(counter.getName());
c.displayName = new Utf8(counter.getDisplayName());
c.value = counter.getValue();
g.counts.add(c);
}