why do not use the timer ?
For low frequency is more accurate measure the period.
Regards