Testing record count and binding to command to refresh