def length(list): count = 0 for item in list: count +=1 return count