[c#]Find dublicates in array :     int[] array = { 10, 5, 10, 2, 2, 3, 4, 5, 5, 6, 7, 8, 9, 11, 12, 12 };
                  for (int i = 0; i < array.Length; i++)
                  {
                      int count = 0;
                      for (int j = 0; j < array.Length; j++)
                      {

                          if (array[i] == array[j])
                          {
                              count = count + 1;
                          }
                      }
                      Console.WriteLine(array[i] + " repeats " + count + " times");
                  }
            Console.ReadKey();

[Output][1]


  [1]: http://i.stack.imgur.com/vH1wi.jpg
I don't want to use LINQ!
My question is, how to print results only once. For example:
10 repeats 2 times

5 repeats 3 times


2 repeats 2 times
...

Thanks.

