Problem with counter not sending output commands