Count of Chars in a word
private int GetCharCount(string word)
{
//the below piece of code will convert the word to a char array
int charCount = word.ToCharArray().Length;
return charCount;
}
Count of Words in a string
private int GetWordCount(string text)
{
int wrdCount = text.Split(' ' ).Length;
return wrdCount;
}