Dimension of quantum phase space measured by photon correlations