added a counter to objects