I was reading an explanation for a solution to an Olympiad problem as follows: Let $S$ be a square with the side length 20 and let $M$ be the set of points formed with the vertices of $S$ and another 1999 points lying inside $S$. Prove that there exists a triangle with vertices in $M$ and with area at most equal with $\frac 1{10}$.
In the solution it states that if you want to cover the square S with triangles formed by the points in M and the vertices of S, you will need 4000 triangles for which this calculation is provided: 2 * (1999 + 1) = 4000. How was this figure obtained/what is the explanation behind this calculation?
For a much simpler verification, double count the angle sum.
Consider all of the vertex angles of the triangles. What is their sum?