Modified function to do proper calculations. Pull-request author did not realize that the count is incremented before save, not after. Meaning, in order for the first ID to be equal to startAt we must set the initial count to startAt - incrementBy. Then on save the first ID will be the count + incrementBy ( = startAt).
Cleaned up tests using async library. Also added an extra test for the new resetCount function.