speed up count of distinct taxa