BUGFIX: Divison by zero when calculating total number of counts