changed getNumberOfEpisodes method, removed For loop when counting elements of list