Given a two-dimensional array of integers and a pair of row/column indexes r and c, return the number of neighbors (not counting the element itself). A neighbor is any element in the eight compass directions "N", "E", "S", "W", "NE", "NW", "SE", or "SW". You may assume that r and c represent a valid location in the array.