Auto-increment counter for mongodb