Hey Tall. If you want to use command blocks, be my guest, but if you want strictly redstone, try this out here:
http://www.youtube.com/watch?v=f20-7iCW1M8.
All you need to do is add an item sorter that sorts the items into a chest using a this video here:
http://www.youtube.com/watch?v=IdDABs7v-4Q.
Use your preferred means to check if the chest is filled with 5 items, then replace the button in the first tutorial with a pulse, after setting it for the amount of items you would like to dispense.
Hope this helps,
-Sanctum