# Displaying total number of records

**URL:** <https://forum.servoy.com/t/displaying-total-number-of-records/19721>\
**Category:** Classic Servoy\
**Created:** [June 13, 2018, 7:17am UTC](https://forum.servoy.com/t/displaying-total-number-of-records/19721 "2018-06-13T07:17:59Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![shivdevpanchal8](https://avatars.discourse-cdn.com/v4/letter/s/a3d4f5/32.png) [@shivdevpanchal8](https://forum.servoy.com/u/shivdevpanchal8)\
**Post date:** [June 13, 2018, 7:17am UTC](https://forum.servoy.com/t/displaying-total-number-of-records/19721/1 "2018-06-13T07:17:59Z")

</div>

Hi, I’ m trying to implement a counter function for displaying total number of records existing in database via server-side scripting by creating a custom component similar to ag-grid’s grouping table component for test purpose.  
I have tried setting the initial view port size to a very high number, created a custom query for loading and grouping records but failed to display number of records.

Any guidance on how to implement the counter
