Correctly reset loop counter on playback start