def mostly_lost(df, track_ratios):
    """Number of objects tracked less than 20 percent of lifespan."""
    del df  # unused
    return track_ratios[track_ratios < 0.2].count()
Number of objects tracked less than 20 percent of lifespan.
motmetrics/metrics.py