Count rate calculation