Best chip for frequency/pulse counting?

Thank you very much for your code!

Are the counted pulses stored in int getCount? Also how much time is a sample of the pulses, for instance does it sample for .5 second, or .25 seconds?

So, if I wanted to watch this on my monitor would I use this code?

 Serial.print(getcount);
  startCount(); //reset counter for next sample

If your code is based off of some other examples that you can mention, I will look at them too so, that I can understand it in more detail.

Thanks for the help,
Mark