.... or use a parallel in serial out shift register. By cascading several registers you can have as many inputs/outputs as you like.

Tim.