added endangerment counting for heatmap