How to know vertex points of a segmented model(stl)?

I have done segmentation of a model in stl file. But I want to know how many vertices points do the stl model have on it? How can I know about the vertices points?

In python:
nOfPoints = getNode('myModel').GetMesh().GetNumberOfPoints()

For the number of vertices, I guess you mean, points from the border edges of an open mesh, then you can use this filter with only the option BoundaryEdgesOn

HIH

Thank you so much for the information.
I wanted to know if there is any built in feature or function in 3D Slicer for this? I know, in 3D Slicer, it allows to do targeted value meshing ( through surface toolbox). But I want to know vertex points before any targeted meshing (just after doing segmentation)? And is the filter (that you mentioned) applicable in 3D slicer directly?