i tried uo.count(type, bag) and uo.count(type, color, bag), but it still doesn't help

and less important thing:
Is it possible to temporarily change color of object? (like client does when you attack, but i need to have more colors on more object at time)
thanks in advance, Ghor