update number of points