title: Count the spaces at start of a string
body: <p>How would I count the amount of spaces at the start of a string in C#?</p>
  
  <p>example:</p>
  
  <pre><code>"    this is a string"
  </code></pre>
  
  <p>and the result would be 4. Not sure how to do this correctly.</p>
  
  <p>Thanks.</p>