Stunned residents of the Bahamas surveyed the wreckage of their homes and officials struggled to assess the number killed by Hurricane Dorian, as the storm bore down on the South Carolina coast on Thursday, threatening record flooding.