If you need to count how many time a button have been pressed, you may use RA4/T0CKI. really easy to setup and work really fine. The only thing you need to read/reset is TMR0 register.