output total counts