//if you have found a new species
if (shared[0]->getAbundance(k) != 0) { observed++; }
else if ((shared[0]->getAbundance(k) == 0) && (shared[1]->getAbundance(k) != 0)) { observed++; }
//if you have found a new species
if (shared[0]->getAbundance(k) != 0) { observed++; }
else if ((shared[0]->getAbundance(k) == 0) && (shared[1]->getAbundance(k) != 0)) { observed++; }