Exhaust gas counter-pressure calculation