 According to the U.S. Census Bureau, the county has a total area of , of which is land and (51%) is water.It borders the Gulf of Mexico.As of the 2010 United States Census, there were 21,381 people living in the county.