trying to get led to blink 10 times, don't know what's wrong

Yes it will.
The loop function does just that it loops.