In fact that is not a counterexample.
is not Riemann integrable on
.
Note that the function is not bounded on
.
This happens to be a standard theorem/problem in the study Riemann integrals.
Here is the standard hint:
.
Use that to show that
where
is the bound of
on