Change how get record count from table