I want to get the total number of elements in the list and i am using element.length but it is showing undefined. Please give me the solution for the same.