Thanks alot it is working now....
public void countArguments( String args[] ) {
logger.debug( "In countArguments(..)" );
if ( args.length == 0 ) {
System.out.println(
"No arguments were passed to this application" );
}
else {
System.out.println( "The number of arguments passed = " + args.length );
}
}