Change the Sine wave frequency

It dosent work correctly I always get a wrong frequency when I give
counterIncrement a value of 250 I recive 213 Hz, 100->85 Hz,300->250 Hz

What is wrong with the frequency?
The smaller the increment amount the lower the frequency will be. That seems to be holding.

What are you expecting?