A single-photon counter for long-haul telecom