count number of alive neighbors