title: How to check how many times a value appears in an array?
body: <p>So this is what I want my output to look like:</p>
  
  <pre><code>How many numbers? 10
  Give number 1: 1
  Give number 2: 3
  Give number 3: 1
  Give number 4: 3
  Give number 5: 4
  Give number 6: 6
  Give number 7: 4
  Give number 8: 8
  Give number 9: 2
  Give number 10: 1
  Number 1 appeared 3 times
  Number 2 appeared 1 times
  Number 3 appeared 2 times
  Number 4 appeared 2 times
  Number 6 appeared 1 times
  Number 8 appeared 1 times
  </code></pre>
  
  <p>The thing is, I've got the part which reads the user input done. However, I have no idea how to continue with the part which tells how many times each number appeared.</p>
  
  <p>Also, I'm doing this as a schoolwork so most of the code is in Finnish. I hope you can still understand it, though.</p>
  
  <pre><code>using System;
  
  namespace Ohjelma
  {
      class Ohjelma
      {
          static void Main()
          {
              Console.Write("Kuinka monta lukua? ");
              int pituus = Convert.ToInt32(Console.ReadLine());
  
              int[] luvut = new int[pituus];
  
  
              for (int i = 0; i &lt; pituus; i++)
              {
                  Console.Write("Anna {0}. luku:", i + 1);
                  luvut[i] = Convert.ToInt32(Console.ReadLine());
              }
  
              for (int i = 0; i &lt; luvut.Length; i++)
              {
                  Console.Write(luvut[i]);
  
              }
              Console.ReadLine();
          }
      }
  }
  </code></pre>
  
  <p>Edit: Sorry about the code block on the example of what it should output, not exactly sure how to use blockquotes even though I tried. Thanks!</p>