more counts and sorting