```ruby
0.upto(count - 1) do |j|
...
end
```