Using most-frequent values histograms to estimate result set size of join operations