Let $f(x):\mathbb R\to \mathbb R$ be a continuous function. How to prove that $f$ can have at most countably many strict local maxima?
I've been thinking about choosing a rational point for each local maxima in $(x_0 -\delta;x_0 + \delta)$ where $f(x_0) > f(x)$ for any $x \in (x_0 -\delta;x_0 + \delta)$. But how to do that so for different $x_1$ and $x_2$ stand different points?