title: Count the number of characters and words in Array
body: <p>How to count number of characters &amp; words in array in C#? </p>
  
  <p>For e.g.: </p>
  
  <pre><code>char[] arr= "My name is ABC XYZ".Tochararray();
  </code></pre>
  
  <p>should return 5 as number of words and 18 (space is counted as character) as number of characters.</p>
  
  <p>Thanks!</p>