Don't give up ...

I'm sure it can be done.
But copy/paste from a 16F726 program will only confuse you.

You've got an Oscillator running ...
So if the C2OUT pin were connected to the T1CKI pin, then Timer1 could count the pulses.

Make a "Time Base" with Timer2 and the CCP1 pin (a.k.a. HPWM at lowest freq) connected to the T1G pin.

Then use TMR2_INT to read the Timer1 value, which should be directly proportional to the frequency. Not sure how good the resolution will be, but that's what experimentation is for.
<br>