add count_neigbors method