How to count from a sentence in C# : <p>So, I am creating a word filter for a game server in C# and basically I am trying to scourer the sentence for banned words and replace them with clean words. I've already done so, but now I'm up to the part where I want to scan the sentence for a list of sentence banned words. I'm hopeless at this bit, and I can't seem to wrap my head around it.</p>

<p>Basically I am <code>CheckSentence(Message)</code> in the ChatManager, and need the following code to count and return <code>continue;</code> if the value is more than 5. So far I have:</p>

<pre><code>public bool CheckSentence(string Message)
    {
        foreach (WordFilter Filter in this._filteredWords.ToList())
        {
            if (Message.ToLower().Contains(Filter.Word) &amp;&amp; Filter.IsSentence)
            {
                // count Message, if message contains &gt;5 
               // from (Message.Contains(Filter.Word))
              // continue; else (ignore)

            }

        }
            return false;
    }
</code></pre>

<p>I'm not too sure if that makes much sense, but I want it to continue; if there are more than 5 <code>Message.Contains(Filter.Word)</code> </p>
