How many times does this nested loop run?
amount
As many times as the value of the amount parameter.