Got frequency measurement working

Using the PIC as a counter