Update number of character on change