emitCounter isn't defined as a number, is that going to be a problem as this assumes its a number