one way, use interrupt. once you're in the interrupt handler, increment a variable. once it reach 15, set a flag to confirm that you reach 15. In the main loop, just poll the Flag.

Another way will be to use the internal counter with TIMER0 and RA4. just poll TMR0 to see if you reach 15.

OR use TIMER0 interrupt overflow
or
or
or