The "loop" instruction is easy. It uses ecx (or cx in 16-bit code):
mov ecx, 10
top:
; do some stuff
loop top
However... The "loop" instruction on the AMD K6-2 (?) was too fast and broke the installer on Win95 (?) so it was deliberately showed down - it's still a small instruction, but no longer fast. (that's the story I heard anyway) Worse, ecx is one of the registers that the C library (among other things) is allowed to alter. This has caused many problems for beginners on exactly the program you want to write!
So you probably want to use some register the C library won't alter...
mov esi, 10
top:
; do some stuff
dec esi
jnz top
This is what "loop" does, without using ecx. (as an alternative, you can save ecx around calls to C)
When using "scanf" (lemme see, you're in Windows, so you spell it _scanf), the parameter is an address to put the number, not the number itself (K&R calls this "the most common error"). _scanf does return a value in eax, but it is the number of items read, not the number you're looking for! See how you do with those clues... Come back if you need more help.
Best,
Frank