title: How to count argc in C
body: <p>I am having problem with, getting right number of parameters:</p>
  
  <pre><code>    while((opt=getopt(argc, argv, ":a:c:SL")) != -1)
  </code></pre>
  
  <p>If i start script: 
  <code>./script -a ok -c 1 -S -L</code> 
   argc variable equals to 7</p>
  
  <p><strong>Problem</strong>  is when i want to start script as <code>./script -a ok -c 1 -SS -L</code>  argc variable equals 7, but it should be 8 cause (SS (or LL/CC) would needs to be count as two).</p>