Updated Logic Clarity and Readability
FIXED found counter