Erased all references to countNeighbors.