function to get the number of mines at neigbors added