add method to get the count of loaded records