Add countNeighbors