AttachmentCounter

Incremented by the main thread before being attached to the scene, decremented by the rendering thread after removal.