first nested aggrigator working. aggrigate on domain level and count n_genomes.