I am modelling an Agent based model in AnyLogic. I am trying to count the number of agents in a statechart with similer fill color as the agents will be assigned different fill colors as they enter different states using the setFillColor() command. I have tried the command item.statechart.equals(Color.red) but its not bringing up any value