FYI, we can also write this as:

    for my $i ( 1..$max_sticky_count ) ...