title: How to count the number of rows in p:dataTable Primefaces?
body: <p>I am new to Primefaces.</p>
  
  <p>I am developing a project using Primefaces 5.1 and jsf 2.2.</p>
  
  <p>I do not know how to count the number of rows in <code>p:dataTable</code>?</p>
  
  <p>I need this for set Piechart based on rows count.</p>
  
  <p>Any idea? </p>