How can I get a vertex count for an edge loop in Python for Blender 2.8? I have an object that consists of two polygons. I'm trying to get a vertices count for the first polygon so I can select it's last two vertexes by index. I know that it starts at Index 1.
I can use
bm.verts[firstindex].select = True

bm.verts[secondindex].select = True

and then bpy.ops.mesh.loop_multi_select(ring=False) to select the edge loop, but is there any way I can get a vertex count only for the vertices in the edge loop? Thanks.
Or you could also do:

import bpy
import bmesh

selected_verts = [v for v in bpy.context.active_object.data.vertices if v.select]
count = len(selected_verts)
print(count)
```