added simple counter