We experimentally demonstrate a supercurrent-assisted, hotspot-formation mechanism for ultrafast detection and counting of visible and infrared photons. A photon-induced hotspot leads to a temporary formation of a resistive barrier across the superconducting sensor strip and results in an easily …