count not working./a.out