Add atomic counter