title: Count the number of sentence
body: <p>I have a program that takes in a string and counts the number of sentences in the string. I have it working but the one thing I can't figure out is if the sentence ends in multiple delimiters. Here is my test string  "The quick brown fox jumps over the lazy dog. Wow!!!!"
  it should have two sentences in this string. But it's returning 4 it's essentially counting the three exclamation points at the end of Wow!!!!. We are only allowed to use what you see so I can't use an array.</p>
  
  <p>This is what is in the SENTENCE_DELIMETERS = ".,::?!" variable.</p>
  
  <p>Any help is appreciated.</p>
  
  <pre><code>int  sentenceCount=0;
  for(int i=0;i&lt;myFile.length()-1;i++){  
    for(int j=0;j&lt;SENTENCE_DELIMETERS.length();j++){  
        if(myFile.charAt(i)==SENTENCE_DELIMETERS.charAt(j))  
            sentenceCount++;
            }
      }
  </code></pre>