add record count to the index view