moved counter from pool to stack object