I'd recommend the more Perl-ish: 

    foreach my $i ( 0... $u->count_max_stickies ) 

just to avoid potential off by one errors.