How can I detect/count number of objects spawned in a room?

That’s what I’m using now because I am unsure of if I want to spawn one object or multiple but I think I might change it to just spawning one otherwise it would probably be three objects maybe.

If I can figure out a way to just easily change the color material on it at random then I’ll probably just stick to one object.