{#each movies as { id, name, year }, i}
{i + 1}: {name} - {year}
{/each}