Corrected function usage to find length of a list.