Do we also need to check for this in the case where `result.length > 1`? It seems like the code below that handles that case will return a contiguous count even if the contiguous matches are all further back in the string from where we're currently matching.

I guess another way to put it is, why isn't this function just something like:

```javascript
var count = 0;
var lastMatch = strCounter - 1; // because strCounter has been ++'ed before we call this function
var i;
for (i = result.length - 1; i >=0; i--) {
    if (result[i].index !== lastMatch) {
        break;
    }
    count++;
    lastMatch--;
}
```