Measuring quantum correlations using lossy photon-number-resolving detectors with saturation