Detecting quantum coherence of Bose gases in optical lattices by scattering light intensity in cavity.