added counter display (TODO: move it)