Fix counter bug in autoStart example