tally and orderedTally