Users can enter NaN values, resulting in error in the counter, therefore need to implement a check.
Users can enter NaN values, resulting in error in the counter, therefore need to implement a check.