How to store number of character in the string from variable in figma

how can I store the number of character I have used in the input field as a string in the variable of Figma