The schematic I posted can easily be made to have 8 input and outputs, but if your using pulses and not switches specifically, it won't do. A PIC springs to mind as it would be simple and compact to implement if you already have knowledge of it and programming equiptment, but I can't help you with that as I have no knowledge of them myself.