ECX
is a countdown register with respect to the loop
instruction. Starting with zero means it will loop through its full 32-bit range, beginning with 0xffff ffff
. Sometimes that is useful.
In this case, if you want to loop 5 times, begin with ecx
set to 5.