atomic_buffer::count().
Changed handling of implicit transaction to avoid creating unnecessary objects.