title: java 101, how do I count the number of arguments passed into main?
body: <p>For example</p>
  
  <pre><code>public static void main(String[] args) {
              int count = 0;
          for (String s: args) {
              System.out.println(s);
                  count++;
  
          }
  
      }
  </code></pre>
  
  <p>is there some way of doing something like</p>
  
  <p>int count = args.length()? or args.size()?</p>