How to take the Nth item from a chest?

I do not think there is any way to do this. The hopper will always take the first item in the chest.

You could make a complicated redstone machine to take a certain amount of items out if the chest until it gets to the item you want, and then take out the next item and move it elsewhere though.

I hope this helps! :)