// Count figures whose type is exactly equal to the type of figure txtName.Text = figures.Count(x => figure.GetType() == x.GetType()).ToString(); // Count figures whose type is equal to or a subtype of the type of figure txtName.Text = figures.Count(x => figure.GetType().IsAssignableFrom(x.GetType())).ToString();