Zeromq subscriber limitations

I am using the zeromq output plugin for logstash which utilizes the pub/sub topology. I want to listen for events and increment a count in a database, but I'm afraid it would not be accurate if I had more than one subscriber node acting on the same message and updating the database simultaneously. How does zeromq prevent multiple subscribing nodes from acting on the published message?

You may need to ask that on a 0mq forum, not sure anyone here would know unfortunately.