Railcraft item unloaders can keep an exact amount of items in an adjacent inventory. Downside: they can only unload from a chest cart, so if you use this system it's going to be a bit unwieldly. But you could just hide it in some hole and never worry about it again.
AE system -> precision export bus -> item loader over a -> chest cart on a circular track passing over an -> item unloader adjacent to your -> ender chest.
You'll want to insert dirt into 7 of the 9 stacks of the item loader's buffer, so there is only room for one stack of apples and one stack of torches. Configure it to load less than a full stack of each apples and torches into the cart; that way it won't remove the entire stack from the loader's buffer and cause the AE network to fill up the buffer slots with only one of the two items. Since the cart is continually cycling, it'll simply use multiple trips to refill the ender chest. The dirt you're using to fill the buffer slots should never be loaded into the cart since you already configured the loader to load only a specific amount of only apples and torches.
Set the export bus to stack transfer mode.
Set the item unloader's filter to one stack of each apples and torches. Set it to "stock" mode.
One advantage of this setup is that you can do not only two, but up to 8 individual items (loader and unloader could handle 9, but the export bus can do only 8). So if you ever want to keep additional items in the ender chest, you just need to add them to the loader/unloader filters, free up a buffer slot in the loader for them, and add them to the export bus.
I am using such a system to keep a group of 5 nuclear reactors stocked, each of which requires a different combination of specific cells. The cart collects dual uranium, quad uranium, dual plutonium, quad thorium, single thorium and depleted isotope cells produced on demand in my AE system, and distributes exacly one cycle refill worth to each reactor, with each unloader specifiying exactly which type of cell is needed. It's a bit silly to see a minecart drive eternal circles in the middle of a group of nukes, but it works extremely well.