add in select to total record count