Superconducting nanowire single-photon detectors for advanced photon-counting applications