Determination of Optical Field Correlations from Photon Counts