How many ways are there to sort rocks?