log count of lines persisted every 1000