ArgumentCountQ
ArgumentCountQ[head, len, min, max] tests whether the number len of arguments of a function head is between min and max.
ArgumentCountQ[head,len,{m1,m2,…,mi}] tests whether the number len of arguments of a function head is one of the mi.
Please visit the official Wolfram Language Reference for more details and examples on core symbols.