title: How to count the number of spaces and characters in vb.net?
body: <p>I want to count the number of spaces and characters inputted in a textbox field.
  Example</p>
  
  <pre><code> textbox1.text - " 1 2 3 4 5 6 7 a b c"
  </code></pre>
  
  <p>I want to count the number of spaces and the characters</p>
  
  <p>Then the result must be..</p>
  
  <p>Dim spaces as integer, char as integer</p>
  
  <p>spaces = 10 , char = 10</p>