FIX: count distinct badges for totals.