add count_neighbors fct