How do I print the value of a loop counter?

Reading the - repeat: docs, I see that the loop counter variable is called count:.
How do I print that variable? This is my code.

- repeat:
        count: 5
        then:
          - component.update: volts
          - delay: 100ms
          - logger.log:
              format: "Component Updating %i times"
              args: [id(count).state]

How do I specify the count variable? Random guess like: repeat.count, on_boot.count do not produce any success.

Regards, Martin