renamed WSM to WHE
entropy_diversity protected against groups with 0 counts.