better count handling during stopping