Throw error when the number of arguments is wrong