Fix how cnt is used