Added a way to tell chunk how many rows actually processed