title: find number of gnome-terminal tabs currently open by window Id
body: <p>How can I find the number of open tabs in my terminal?</p>
  
  <p>I can get the Id of the window by using <code>xwininfo -name</code> and giving a name of one of the tabs. For example: </p>
  
  <p><code>xwininfo -name "&lt;name of a tab&gt;"</code> on my machine resulted in:</p>
  
  <pre><code>xwininfo: Window id: 0x3000006 "&lt;name of tab&gt;"
  
  ...some more info
  </code></pre>
  
  <p>Is there a way to know the number of tabs currently open? I'm using <code>Ubuntu</code> with <code>tcsh</code> but <code>bash</code> solutions are welcome also because they may hint for the solution with <code>tcsh</code>.</p>