Length variable

declared the variable for length