Basic counting code that replicates the statistics output by the geiger counter's serial port