Check function argument lengths