You have to go through the collection of chars, compare them to input and return the count of searched letter in a string.
string str = "hello";
char input = 'l';
int counter = 0;
foreach(char a in str)
{
if(a==input) counter++;
}
var result = str.Count(x=>x==input);