On Predictive planning and counterfactual learning in active inference