Checks number of parameters in a lambda declaration.

A lambda can have only up-to 8 parameters