Adding view counter