Adds a variable to hold the length of the array