Counting number of repeating fields using Javascript
<p>Is it possible to count the number of fields added by user.</p>

<pre><code>&lt;div class="myzebra-repeatable-field"&gt;
  &lt;input id="cred_form_3584_1_wpcf-ticket-student-name" class="myzebra-control myzebra-text myzebra-prime-name-wpcf-ticket-student-name" type="text" placeholder="" value="" name="wpcf-ticket-student-name[0]"&gt;
&lt;/div&gt;
&lt;div class="myzebra-repeatable-field" style="display: block;"&gt;
  &lt;input id="cred_form_3584_1_wpcf-ticket-student-name_repeat_2" class="myzebra-control myzebra-text myzebra-prime-name-wpcf-ticket-student-name" type="text" placeholder="" value="" name="wpcf-ticket-student-name[2]" style="visibility: visible;"&gt;
  &lt;a class="myzebra-remove-field" href="javascript:;"&gt;Remove&lt;/a&gt;
&lt;/div&gt;
&lt;div class="myzebra-repeatable-field" style="display: block;"&gt;
  &lt;input id="cred_form_3584_1_wpcf-ticket-student-name_repeat_3" class="myzebra-control myzebra-text myzebra-prime-name-wpcf-ticket-student-name" type="text" placeholder="" value="" name="wpcf-ticket-student-name[3]" style="visibility: visible;"&gt;
  &lt;a class="myzebra-remove-field" href="javascript:;"&gt;Remove&lt;/a&gt;
&lt;/div&gt;
</code></pre>

<p>The first field is required(so there is no remove button), and the rest can be removed, therefore I need to know what I should do to count the number of fields in the end.</p>
