Port of php str_word_count to c#
<p>I'm migrating a legacy PHP application to .net, and one of the requirements is that the URLs stay exactly as before. </p>

<p>To generate friendly URLs the legacy application uses <a href="http://php.net/manual/en/function.str-word-count.php" rel="nofollow"><code>str_word_count</code></a>,  I was wondering if there is a port of this function to C#?</p>
