This line doesn't (maybe intentionally?) have a validation to check the count-up value can cast to integer.
I (also) regard this is OK, because per-record cast exceptions or warning logs are not realistic in actual operation.