Impedance measurements for photon number resolving Transition-Edge Sensors