calculate the cell count for the current population.
It may or may not be the same as the value retrieved from nodeProperties::getStats especially when the gate indices are updated but nodeProperties::computeStats has not been called.