newline counter to mongo and better results realtime