how to calculate count rate from a table