James Webb uses hexagonal mirrors, and every edge produces rays in two opposing directions, but the rays from the opposing edges coincide, so we get six rays total. For odd number of edges, there would be twice as many rays as edges. Now, I’m no expert in digital cameras, but
Wikipedia entry on optical diaphragms has 5-blade diaphragm as one of examples, so it must be a common kind.