Version 3: Iteration and elements count