Ensure record count is initialized and some lint