title: Counting number of plotted points in gnuplot
body: <p>The data file contains values in the following format:</p>
  
  <pre><code>0 0 50
  0 1 70
  1 0 40
  1 1 70
  2 0 110
  2 1 60
  3 0 60
  3 1 120
  4 0 50
  4 1 50
  5 0 70
  5 1 70
  </code></pre>
  
  <p>This is a code snippet from my gnuplot script:</p>
  
  <pre><code>plot 'file' using ($3 &gt; 100 &amp;&amp; $2 == 0 ? $1 : 1/0): 3 with points pointtype 1,\
       'file' using ($3 &gt; 100 &amp;&amp; $2 == 1 ? $1 : 1/0): 3 with points pointtype 2 
  </code></pre>
  
  <p>Can someone suggest a way to count the number of plotted points of each pointtype?</p>