I'd like to know how to Count the instances of the first element in a list, then the second etc. and output these values.
var SPFK_List = new List<string>() { "one", "one", "one", "two", "two", "three", "three", "three" }; Inputs.ones.Value = *(number of one's)* Inputs.twos.Value = *(number of two's)*
Inputs.first.Value = List.Where(x => x.Equals(Distinct_List[2])).Count();Where the distinct list is a list of added distinct values from the first list.