title: Separating numbers processed with a foreach conditional into specific category of numbers
body: <p>This is a scenario: The $numbers array in the code below contains one thousand numbers(0 - 1000). I need to count how many of these numbers fit into each of the following categories: </p>
  
  <ol>
  <li>how many of them are between 1 and 1000 inclusive, </li>
  <li>how many of them are less than 1, and </li>
  <li>how many of them are greater than 1000. </li>
  </ol>
  
  <p>I have created a foreach loop to look at each number one after the other, but right now it's treating every number like it belongs in all three categories. </p>
  
  <p>How do I get the counts correct? ie., how many numbers fit into the "Less than 1", "Between 1 and 1000", and "Greater than 1000" categories, respectively.</p>
  
  <p>The current code:</p>
  
  <pre><code>$numbers = get_numbers();
  $count_less_than_one           = 0;
  $count_between_one_and_thousand = 0;
  $count_greater_than_thousand    = 0;
  
  foreach ($numbers as $number) {
     $count_less_than_one += 1;
     $count_between_one_and_thousand += 1;
     $count_greater_than_thousand += 1;
  }
  </code></pre>