A photon counting reconstructive spectrometer combining metasurfaces and superconducting nanowire single-photon detectors