$x=length+(sort map 1x y===c, keys%h)[-1]; [download]
In reply to More golf than obfuscation... by indigo