title: How to know how many items a choice field has inside the controller - Symfony2
body: <p>I want to count the choice's items after the form has been created. The field is a simple Symfony's choice field with a query_builder to create the items. How can I achieve this? </p>
  
  <pre><code>&lt;?php
  
  class MyController
  {
      public function indexAction()
      {
          $form = $this-&gt;createForm(new MyFormWithChoiceFieldType());
  
          // suppose that the field is named by "countries"
          $items = count(???);
      }
  }
  </code></pre>
  
  <p>Thanks in advance.</p>