I randomly spawn objects in a family onto the layout. When they are spawned they are assigned one of a few specific instance variable values.
Later, I want to know at any given time how many objects exists with a specific instance variable value for a comparison condition. How can I retrieve this number?