The answer is 4.

**
This section requires Javascript.
**

You are seeing this because something didn't load right. We suggest you, (a) try
refreshing the page, (b) enabling javascript if it is disabled on your browser and,
finally, (c)
loading the
non-javascript version of this page
. We're sorry about the hassle.

I used Turàn's theorem for $2014$ vertices and $\frac{1402\cdot2104}{2}$ edges (i.e. the minimum number of edges possible). Solving for $n$ leads to $n=\boxed{4}$