Fixed for matching node sets. Did not increment counter when iterating through node relationships.