}
@Override
public Object pre(Object t) {
if (t instanceof HiddenTokenAwareErrorTree) {
HiddenTokenAwareErrorTree errorNode = (HiddenTokenAwareErrorTree)t;
int startIndex = errorNode.getStart().getTokenIndex();
int stopIndex = errorNode.getStop().getTokenIndex();
int errorTokens = countOnChannelTokes(startIndex, stopIndex);
count+=errorTokens;
// System.out.println("Error tokens " + errorTokens);
} else {
if (!isDummy(((CommonTree)t).getToken())) {