The measurement of diversity in different types of biological collections