Number of markers in VSE?
Run this code in the Text Editor:

import bpy

scene = bpy.context.scene
print("Number of markers: "+str(len(scene.timeline_markers)))


And in Menu > Window > Toggle System Console see the result.