Mostly Tracked / Lost as Fraction of all Instances / Tracks

Hello,
is there an easy way to calculate MT (Mostly Tracked) and ML (Mostly Lost) metrics as a fraction of all tracks in a scene?
Or in other words: Is there an easy way to get all instances / track of one scene? With that one can simply calculate it given the MT / ML in total numbers…