My knowledge relates to fans but pumps and fans are similar in this regard.
The number of vanes affects the "slip". That is the actual discharge angle vs. the theoretical discharge angle. This in turn affects the head. The fewer vanes the more slip, the less head.
There is an optimum number of vanes beyond which the friction losses offset any gains.