added counter.