Let $f : \mathbb{R}\to \mathbb{R}$ be a monotone function and consider the set $S$ of all points $a\in \mathbb{R}$ such that
$$\lim_{x\to a^-}f(x)\neq \lim_{x\to a^+}f(x).$$
I want to show that this set is countable, but I'm not finding any way to do it. I thought one way would be to show that this set is discrete, so that it is countable. For that to happen, I would need to show that there is no convergent sequence $(x_n)$ of points of $S$ all different than $a$ whose limit is $a$.
My idea then is to suppose there is such a sequence $(x_n)$. Then $x_n\in S$ and $\lim x_n = a$ with $x_n\neq a$. In that case we have $\lim_{x\to x_n^-}f(x)\neq \lim_{x\to x_n^+}f(x)$.
Intuition says this should contradict $f$ being monotone, but I'm not finding a way to prove it.
So how can I finish this proof? Is my strategy correct? If so how do I finish it? If not, how should I prove this result?