count live neighbors of a cell