How do I get my PIC to tell if an input is oscillating/toggling at about 3 Hertz or so?

FA