The more information you provide, the better your chance of someone here helping you isolate/fix the problem.

Post a few more details like;

How are you counting pulses?
Which I/O-pin are you using?
Power supply?
Config fuse settings?

Post your code - or sections of your code you're having problems with.