added total counts back in to the resulting data