Alain is refering to the COUNT command that is part of Picbasic Pro.

In some manuals more information can be found in section 5.9.
In other manuals it's 5.10

Since you are trying to measure frequency, instead of Pulse Width Modulation, all you need to do is count the number of pulses received in a specified amount of time.

The higher the COUNT, the higher the frequency.
<br>