Is this a bounded variation function?
$$ f(x) = \begin{cases} 0, & \text{if $x$ is irrational} \\ \frac{1}{q}, & \text{if $x = \frac {p}{q}$, with $\frac {p}{q}$ irreducible} \end{cases}$$
I would say it IS a bounded variation function because it is a constant function (and constant functions are of bounded variation) except for a countable set of discontinuities.