Help needed: Using actionable notification REPLY as a variable in a repeat

Hello,
I’m new to using YAML and trying to get the user input from an answer to a notification to increase a counter. Not quite sure where I’m going wrong. My code is below.
Apologies if this is formatted poorly.

alias: notification test
description: ""
trigger: []
condition: []
action:
  - service: notify.mobile_app_nokia_xr21
    data:
      message: How many?
      data:
        actions:
          - action: REPLY
            title: Answer
  - wait_for_trigger:
      - platform: event
        event_type: mobile_app_notification_action
        event_data:
          action: REPLY
    timeout:
      hours: 0
      minutes: 3
      seconds: 0
      milliseconds: 0
  - variables:
      delay: "{{ trigger.event.data.reply_text | int }}"
  - repeat:
      count: "{{ delay|int }}"
      sequence:
        - service: counter.increment
          data: {}
          target:
            entity_id: counter.test
mode: parallel

I ned help with this too, just haven’t had the time

as your trigger is from a wait_for_trigger you need to prepend wait like the docs

https://companion.home-assistant.io/docs/notifications/actionable-notifications#building-notification-action-scripts

https://www.home-assistant.io/docs/scripts/#wait-variable

Thank you! I guessed it was something small but I just couldn’t spot it!