I can't C# my errors : I get two errors "Cannot assign to 'C' because it's a 'foreach iteration variable" and "Syntax error, value expected" I don't really know where my error is? I can get some fresh on eyes to ID my deficiency. 

 int[] numDictionary = new int[] { 5, 5, 5, 7, 7, 7, 9, 7, 9, 9, 9, 1 };

            IDictionary<int, int> count = new SortedDictionary<int, int>();
            count = new SortedDictionary<int, int>();

            //int SortedDictionary = count;

            foreach (var c in numDictionary)
            {
                if (c > 0)
                {
                    c = count;
                }
                count[c] = c[] + 1;
            }
            Console.WriteLine(count);
            Console.ReadKey();