No of ways to count the records

From data source
datasource.numberOfRowsLoaded()
From select query
select count(RecId) from tableA;