check if correct number of params counted