If you want to count, just Count()
with a help of Linq; to test if strings are equal use String.Equals
:
System.Linq;
...
// do not do Trim() repeatedly
String testValue = myInput.Trim();
int count = myList
.Count(item => String.Equals(item.Trim(),
testValue,
StringComparison.OrdinalIgnoreCase));