So I really had to step through this code in the debugger to figure out what's going on here.  The comment is a little misleading. What the code really does is find which occurrence in the item's matches array to start with and setup the iteration and start counters so that the next matches are counted as you progress through this loop.