Well this tells you.
Note the frequency is not continuously variable, its resolution is the least significant bit in the counter. Maybe you are not understanding the examples.
That circuit :-
- Needs a common ground with the arduino.
- Is 9V enough to work for a TENS?