Possible Duplicate:
Showing range is countable
I was going through my old notebooks and found this. I thought it was good enough to share.
Problem: Let $f(x)$ be a function $\mathbb R \rightarrow \mathbb R$, with the only restriction on it being that it has a local extremum at each point. Prove it has countable range.