[PD] Looping through an array a specific number of times