For a Xd6 dice pool I want to know probabilities of getting a specific number of same outcomes, for all numbers from 2 to X.
For example, I roll 5d6 and get 2, 3, 2, 2, 4 – the result is "3" because there are three 2s. But what was the chance of getting "3" for the 5d6 pool?
For 1, 6, 1, 6, 1 – two 6s, three 1s – the result should be "3", because 3 is the highest.
For 2, 2, 3, 3, 6 the result should be "2", et cetera.
The matching outcome itself is irrelevant, all I want to know is the highest duplicates number. I’ve found this question – How do I count the number of duplicates in anydice? – but it counts all duplicates, not the highest number of them.