It’s probably the same guidelines used to form a team. Five people is good, maybe seven. If you go much higher then you get what I would call, “passengers.” These people are there for the “ride” but they don’t contribute since there are too many voices. If you have that many people you’d like to include then you could try running separate brainstorming sessions. More ideas are good!