I like using the video widget for this sort of thing because it allows for an action to happen at the end of the video. If you don't want to get into After Effects you could do this in Photoshop, or even do a search on a stock photo site for "numbers counting up video".
If you don't need an action at the end, an image sequence would be great too--also easily exported from a Photoshop video. That way you could copy all the numbers you need from a folder into a new folder named with the total number. That would be just as fast as tweaking a javascript and you'd have more control over the look and feel.