I think that this is not possible.
The value for the (maximum) number of counts is calculated at the end of the previous loop (here: counting titles).
If the next loop starts to count the next amount of titles, the counter is reset, the value is gone.
So I would have to store the value for counts somewhere and then, when all artists and titles have been looped through, one would have to loop through all the saved counters and sort them.
But I do not see any possibility to create a list of unknown extent to save the individual counters.
If you want to have different sort criteria, I would create some kind of table with the export and use that export then in another program that can sort by columns.
You could modify the export so that in the resulting file you get the columns separated by the TAB character:
012: ABBA (46) -> 012$char(9)ABBA$char(9)46