Pretty straight forward, as the title says SceneInstancesCount(Object) in custom behavior events doesn’t work and will always return 0. I tested with “DoStepsPreEvents” and “DoStepsPostEvents” methods.
It doesn’t work even all instances are from the same object with the behavior (I wasn’t using multiple objects).
I don’t know to what extend it’s a bug or a missing feature, nor if it can be fixed. For context, I wanted to use the expression to check when it’s reading the last loop for objects that have the behavior. I should be able to find a workaround, tho it was the easiest way to do it.