This seems super simple, but it's not :/ . I had to mess around with the 'compute' and 'number' variables for a while before I figured out how to make it work right.
Enjoy my pain and suffering