Lecture code. Displaying correct # of videos based on initialization