Count occurences of a number in a file