predict record count and link