neighbours function

Count Number of Neighbours on a Rectangular Grid.