Efficient probabilistic reconciliation of forecasts for real-valued and count time series