count lost and received messages