keep track of number of records written, even in non bulk mode.