title: Counting Lines of file having row delimiters in unix sll script
body: <p>DataFile content</p>
  
  <pre><code>1234t56
  78t7891
  </code></pre>
  
  <p>here delimiter is <code>t</code> </p>
  
  <p>and i need output as </p>
  
  <pre><code>3 
  </code></pre>
  
  <p>(the three objects I want counted would be <code>1234</code>, <code>56&lt;newline&gt;78</code> and <code>7891</code>)</p>
  
  <p>it worked with grep i.e. counting occurrence of delimiter and then add one will give no. of lines</p>
  
  <p>but its performance hindrance anything in awk could help</p>