def mostly_tracked(df, track_ratios):
    """Number of objects tracked for at least 80 percent of lifespan."""
    del df  # unused
    return track_ratios[track_ratios >= 0.8].count()
Number of objects tracked for at least 80 percent of lifespan.
motmetrics/metrics.py