A model of species density in shoreline vegetation