there is nothing wrong with "numpoints".
Code:
int numPoints= 0;