How to get Dislocation Segment Counts from Ovito python package?

There is ‘DislocationAnalysis.length.1/n(ijk)’ global attribute to get dislocation lengths via the Ovito python package. But I found no attributes to get the dislocation count values. How can I get the dislocation count values using the python package? I want to calculate the average length of dislocation segments.

Thank you,
Tawseef

Please have a look at the code examples given here: ovito.data — OVITO Python Reference 3.10.6 documentation