Help With Geartooth

Hey Guyz

I have a question, for a geartooth sensor which came in a kit, In the default code of encorder how we we make the sensor count its rotations.

Thanks a lot,

Bilal Shahid
Team 1219