Originally posted by TomazZ
Isn't it easier to count them all before for loop?
The number could change between the counting query and starting the cursor - couldn't it?