.log('This will only run once')
        e.target.disabled = true
        window.onceCount = window.onceCount + 1 // for tests
      }, { once: true });
      </script>


      <button id="disabled-after-three-clicks">
        Disable after 3 clicks
      </button>
      <script>
      // Run three times via counter + cleanup function
      let count = 0
      const removeAfterThreeFn = addListener(document.querySelector('#disabled-after-three-clicks'), 'click', (e) => {
        count = count + 1
        con