With this action you can find the number of instances of any given object currently active within the room. You can select any object from the resource list or you can use the special keyword all to get the number of all the instances active. You also need to supply a target variable to return the value to so that you can then use it in further actions.
Argument Description Object The name of the object to check for. Target The variable to target for the return value.
The above action block code creates a local (temporary) variable and then assigns the number of instances of the object "obj_Squirrel" to it. This value is then checked and the instance is destroyed if the number of instances is greater than 100.