getting uniq labels count to filter best constant output