Limit number of integer values in Int data type

I want to limit my Int data type to accept only 8 integer values?
its happening with custom script for Data dataType but not with Int…

@suryanamha
len(str(field_value)) - this will gives you length of integer value