In my code, I am attempting to output the amount of items in my movie list from a console command, but I'm not entirely sure on how I'd be able to grab the amount of items from the list. The list is originally created as a private list, but I have a property making it an IEnumerable list, shown below.
public IEnumerable<Movie> Movies
{
get
{
return this.movies;
}
}
How would I be able to count how many items are within the list that is given by the property?