In Primefaces DataTable script to get current page row count WidgetVar.paginator.cfg.rowCount it show all rows count but I need current page row count (i.e) first page 20 records and second as 3 records when I click paginator for 2 second I need result 2 second page row count result 3.
<p:ajax event="page" oncomplete="getRowCount();"/>