This question is inspired by problem 1 of the combinatorics test of the 2012 third round iranian olympiad which is as follows:
We've colored edges of $K_n$ with $n-1$ colors. We call a vertex rainbow if it's connected to all of the colors. At most how many rainbows can exist?
How can we find the maximum number of rainbows for an arbitrary simple finite graph $G$ on $c$ colors?