view counter on main activity