check argument count before executing the script