In controlling an engine, an amount of an intake charge provided, during operation of the engine, to a combustion chamber of the engine is determined. The intake charge includes an air component, a fuel component and a diluent component. An amount of the air component of the intake charge is determined. An amount of the diluent component of the intake charge is determined utilizing the amount of the intake charge, the amount of the air component and, in some instances, the amount of the fuel component. An amount of a diluent supplied to the intake charge is adjusted based at least in part on the determined amount of diluent component of the intake charge.