Three to five examples hit the sweet spot. Fewer examples may not establish the pattern clearly. More examples hit diminishing returns and consume your context window.
After examples, the model usually gets the pattern. Adding more just wastes tokens that could be used for other context. Be strategic about what you include.