how many parameters should a function have
If all the parameters are used, the function must have the correct number of parameters. Take this often used function: That's 12 parameters (9 if you boundle the x,y,w and h as a rectangle) and there's also the parameters derived from the class name as well.