input counter