You will have to learn how to debug properly.
Dump your variables to the console and see what's going wrong.

It's hard to say what's going wrong by looking at the code you posted, but the while loop should never end because aantallabel (which is 0) will always be smaller than limiet.