This function takes a set of coordinates on a grid and returns the number of discrete paths that can be taken from the origin.