[dci-essync]: use variable to count events processed
[dci-essync]: use variable to count events processed

When there is no new files events the script is
update the current sequence number plus 1.
This is avoided by using a counter of the events
processed.

Change-Id: I33dff01f6d7f36de536106b9e3dce596c912201f

redhat-cip/dci-control-server,enovance/dci-control-server,redhat-cip/dci-control-server,enovance/dci-control-server