The Svelte documentation for {#each} states
The values in question can be arrays, array-like objects (i.e. anything with a length property)
So to loop an each statement a specific x number of times you would simply provide { length: x } as the array input....