Constraining Galactic dark matter with gamma-ray pixel counts statistics