radix sort: key-indexed counting