How can I get a vertex count for an edge loop in Python for Blender 2.8?
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)
```