title: How to get the count of fields in a delimited string?
body: <p>Given the following data: </p>
  
  <pre><code> field1;field2;field3;field4;
  </code></pre>
  
  <p>How to get the number of fields in this string? 
  For example, the command should give back <strong>4</strong> for this case.</p>
  
  <p>Actually, I don't have the same number of contents in each line, but I need to return them all anyway. Once I manage to count the number of fields, I will also manage to make a loop to get them all.</p>