Flag counter dont work. Can someone help me?