Improve calculation of site total richness   so that it is more robust.