title: How do I count user input in Visual Basic?
body: <p>The code for VB:</p>
  
  <pre><code>For 'I think this where the counter would go if I knew how to write it
          If (intEmpCount &lt; 10) Then
              If decTotalTax &lt; decGrossPay Then
                  decNetPay = decNetPay
                  boxResults.Items.Add("EMPLOYEE ID: " &amp; dblEmpID.ToString)
                  boxResults.Items.Add("Gross Pay: $" &amp; decGrossPay.ToString("N2"))
                  boxResults.Items.Add("Net Pay: $" &amp; decNetPay.ToString("N2"))
                  boxResults.Items.Add("State Withholdings: $" &amp; decStateTaxAmount.ToString("N2"))
                  boxResults.Items.Add("Federal Withholdings: $" &amp; decFederalTaxAmount.ToString("N2"))
                  boxResults.Items.Add("FICA Withholdings: $" &amp; decFICAAmount.ToString("N2"))
              Else
                  MessageBox.Show("ERROR. THE AMOUNT OF WITHOLDINGS ($" &amp; decTotalTax.ToString("N2") &amp; ") EXCEEDS THE GROSS PAY.")
              End If
          Else
              MessageBox.Show("ERROR. YOU HAVE EXCEEDED THE ALLOWABLE NUMBER OF EMPLOYEES.")
          End if
  </code></pre>
  
  <p>The question to be answered: How do I count how many EmployeeIDs have been entered? </p>
  
  <p>For this assignment I am going under the assumption that the professor wants us to limit the number of employees to 10, so I'm trying to figure out how to do that. Also for the purpose of this assignment we should assume that the EmployeeID can be any number up to six or seven digits long dependent upon the size of the company.</p>
  
  <p>For instance: 1000 10001 100001 101000 etc etc...</p>