Calculating background statisticsΒΆ