Convert frequency into value for the counter

Hi guys! I'm new in Arduino and I need your help. I'm using the overflow interrupt with the counters in Arduino m0 pro to output certain values. What I want is to output each value at a frequency of 39.06 microseconds. Do you know any formula to convert the frequency into a value that fit into the CC0 register of the counter?