title: count number of tab characters in linux
body: <p>I want to count the numbers of <code>hard tab characters</code> in my documents in unix shell. </p>
  
  <p>How can I do it?</p>
  
  <p>I tried something like </p>
  
  <p><code>grep -c \t foo</code></p>
  
  <p>but it gives counts of t in file foo.</p>