added statistics count while sending records to server