Move the getPointCount function