title: Missing something in my C# count for integers code
body: <p>I'm doing some excercises for school and ran into a problem.
  When I try to count the characters in a array it just gives back the array itself.
  Can anyone tell me what I'm missing? The code is in C#.</p>
  
  <pre><code>public static int CountFor(int n)
  {
          int count = 0;
  
          int[] a = new int[] {n};
          for (int i = 0; i &lt; a.Length; i++)
          {
              count += i;
          }
          return count;
  } 
  </code></pre>
  
  <p>and in the main to show the results:</p>
  
  <pre><code>Console.WriteLine(CountFor(1024));
  Console.ReadKey();
  </code></pre>