getVertices now returns how many vertices were actualy added