It's not nearly as fast as the approach used in 'A Better Way to Count', but it is much more versatile. Advantages include it being CALLable, nestable and able to start at numbers from zero to greater than 99 million.
This routine bears little resemblence to the ADD.BAT or SUB.BAT routines presented in the 'Real Math' article, but that is its heritage. It uses all of the same concepts, but is implemented with a much more compact set of code. Built this way, it runs faster and is about two-thirds the size of the original ADD.BAT routine. However, the cost is that it is that much more opaic to understanding. I'm not quite certain I understand how it works. I certainly don't feel up to providing an explanation of it's operation. The best I can suggest is that you try it out from the command line something like this ...
The latter version can be reviewed in a text editor or printed for leasurely evaluation. (Might even be useful for putting yourself to sleep some night.)
This may or may not give you some insight into what is going on. Good luck!
However, difficult it may be to understand, it really is very simple to use. For example, counting from 100 to 125 is easily coded in just these few lines ...