Modified the guess counter logic

Modified the guess counter logic