Derive max distinct frequencies for n items | Meta