I would like to know how i can check if all the instances of an object type in a layout are destroyed. What i have tried is to create a global variable named XXXX, then in everty tick i set that variable to object.Count. Then i check if XXXX is <= 0. The problem is when i crate the global variable i can't set the initial value to object.count. Is there a better way for this?