fixing how to count