Problem: Let $f(x)$ be a real valued functions defined on $\mathbb{R}$, prove that the point set $$E = \{x\in \mathbb{R}: \lim_{y\rightarrow x} f(y) = +\infty\}$$ is a finite or a countable set.
Proof: Let $g(x) = \arctan f(x), x \in \mathbb{R}$. Then the point set $E$ can be written as $$E = \{x\in \mathbb{R}: \lim_{y\rightarrow x} g(y) = \frac{\pi}{2}\}$$ Therefore $E$ is a finite or a countable set.
The above proof is from a textbook of real analysis. How can we see that the set $E$ in this proof is finite or countable?