Cheking the number of input parameters