n_vertices function

Retrieve the number of vertices in sf objects