Traversal grid path to get paths count.