Zmq app

How do we detect that target has inserted all documents received from the source ?