import java.util.Scanner;

public class Argue
{
	/*********************************************************************
	 * A main method to demonstrate incoming command line arguments
	 * @param args An array of String that may be empty or may contain
	 *             values that we will use in a program
	 ********************************************************************/
	public static void main(String args[])
	{
		int count;
		Scanner lineScan;
		
		if (args.length > 0)     // must check to see if there is anything 
		{
			System.out.printf("I am an argument: %s\n", args[0]);
		}
		else
		{
			System.out.printf("There are no arguments.\n");
		}
		
		// this code checks to see if we have an argument and if that argument
		// is an integer.
		
		if(args.length > 0)
		{
			lineScan = new Scanner(args[0]);
			
			if (lineScan.hasNextInt())
			{
				count = Integer.parseInt(args[0]);
			}
			else
				count = 0;
				
			for (int ii = 1; ii <= count; ii++)
			{
				System.out.printf("Count: %d\n", ii);
			}
		}
		else
			System.out.println("No values to count.");			
	}
}