Meteor Mongo does not have findAndModify support - how to generate atomic counters?

As long as you only need it in server code, you can do it like this: