For Cycle limit 1 - Snapshot Backup

I’m trying to read name and status from snapshot.

this gives me back the list of all snapshot

{%-  for sh in states.sensor.snapshot_backup.attributes.snapshots   %}

    name: {{ sh.name }}
    time: {{ sh.state }}
{%- endfor%}

states.sensor.snapshot_backup.attributes.last_snapshot
don’t have name or time (status).

any suggestions?
thanks

i’m trying someting like:

{%- set i =1 %} 
{%-  for sh in states.sensor.snapshot_backup.attributes.snapshots   %}
{%- set i = i+1 %} 
{{i}}
    name: {{ sh.name }}
    time: {{ sh.state }}
{%- endfor%}

but i is always “1”.
I’m confused!