title: In c# how do I count the number of words in each index of a string array?
body: <p>For example I've got a text file that I've put into an array and then I have split that array by the full stops (so each sentence is in its own index of the new array) using the following:</p>
  
  <pre><code>textSplitArray = textArray[j].Split('.');
  </code></pre>
  
  <p>How would I then count the number of words in each index of textSplitArray to determine which sentence has the most words? Is it possible to do this or would I have to do it another way?</p>
  
  <p>I've tried searching everywhere but can't seem to find an answer</p>