recordsCounter functionality for the grid