How to measure forest biodiversity