Thailand is counting the multibillion-dollar cost of nationwide flooding that has killed nearly 270 people and may yet cause more havoc as waters threaten to engulf the country's capital.