Long-distance OTDR using photon counting and large detection gates at telecom wavelength