eightneighbours function

Count Number of Neighbours in a Rectangular Cellular Grid.