Length of a input string

Another method:

With while loop: