@Suevver The histogram approach to determine the best "alternative" configuration of `$` and `#` may not be the best after all. Sometimes a given value for `$` may be important even if used seldom, because it produces an important advantage (such as number of bytes saved), even if it only does so occasionally. It's probably better to do by hand, and based on experience.
For example, I think the best alternative configuration for `XD` (final implicit display) would be 1 input. I've often had to use a final `1$` to have MATL display only the top of the stack.