Now stats exits when it encounters letters and other types of input that aren't numbers.