You can add as many colors as you want in both standard and mesh Figma gradient styles. But try not to go overboard. Since gradients have multiple transitional colors, more than five might be too much, even for a mesh gradient.