added counters to model