The second question is a little vague, I guess, but I'd be inclined to say that it's a for loop. A for loop has a counter and runs for a number of iterations (unless it's broken out of). A while loop would be better for situations that require the loop to cease when a condition is met (though you can easily implement a counter for them too).
In essence, both loops can be used for situations that require a counter.