Adds functioning counter to output