How can I find out the number of periods in a string with C#
<p>I have strings such as:</p>

<pre><code>1.1
1.11
11.11
1.1.1
11.11.11
</code></pre>

<p>All these are single strings with no spaces and only numbers and periods.</p>

<p>I need to be able to to count the number of periods in the strings. Is there an easy way to do this in C#?</p>
