The problem here is a common one in that the formulation of the result can be at odds with everyday usage of the language.
The only examples of such $f$ are in fact constant functions, which have $f'(x)= 0$ for all $x$.
What does
[...] $f'(x)=0$ for every $x \in \mathbb{R}$ except for a finite set $E$ or a countable set $E$, [...]
mean to say precisely?
It means to say that there is a set $E$ that is finite or countable such that $f'(x)= 0$ for all $x \notin E$.
Note that:
- $E$ can be empty.
- It is not uncommon that the author does not insist that $f'(x) \neq 0$ for $x \in E$.
Informally, the result says if for continous $f$ you know $f'(x) = 0$ for all $x$ except possibly some few exceptions, then you can conclude that $f$ is constant (and after that you'd know in fact $f'(x) = 0$ for all $x$).
In particular, this result tells you that there cannot be any interesting examples: by the very result every example has to be constant!