Get number of grease pencil strokes?

OK, I need to get the number of grease pencil strokes. How do I do that?

If I do this

gp = bpy.context.scene.grease_pencil
strokes = gp.layers.active.active_frame.strokes
print(strokes)

It gives me

<bpy_collection[1], GPencilStrokes>

I need to get just the number 1 value.

gp = bpy.context.scene.grease_pencil
strokes = gp.layers.active.active_frame.strokes
print(len(strokes))

1 Like

Yeah, I finally figured that out.