fixed bug in count_partitions; fixed associated tests; abundance partitioning works