Alex has a wooden rectangular prism. He wants to paint each face a different color. The number of colors he will use is . If he also wants to put a red ribbon along each of its edges, then the number of ribbon pieces he needs is .