Use sa[] for sorted count, removed sorted[]