Sum upto a given number | ScratchStats