@aristidey, you could do this by using the repeat count function as outlined in this post discussed previously:
repeat count