You can use Enumerable.Count() to avoid the ToList(). return packages.Count(item => item.IsReleaseVersion());