check number of command line arguments