Frequency counting

I don’t know how to accomplish what you want, but if you can find a device driver, you should be able to use the eCap peripheral to handle this for you.