The solution would be to define a variable (lets call it COUNTER) with type Integer that keeps count of the number of iterations (starts with 0).
then add a decision split to see if the variable < (less than) runs.
if it is then do what is supposed to be done in the loop and then INCREMENTCOUNTER by one [make sure the increment is done otherwise you’ll be in an infinite loop)
if NOT then you have looped the necessary amount of times and so proceed with your code.
This is an IMGUR link for the referenced mendix microflow: https://imgur.com/Tmglqs4