Fixed wrong subtraction for count_change