Maximum number of letters in textfield

Hello. How can I set a maximum of numbers of letters that you can write in a Textfield. For example the player should not be able to write more than 100 letters in textfield. How can I do this?, here you can find information about textfield. Also about the maximum lenght