Counter added to precise the order of messages sent by ajax