Counting seats in single side

I know counting all seats in rectangle gojs seating chart now i want to count only one side of the rectangle table either length or breadth could you please help me

When you iterate over the Node.elements, skipping the first one (the table), look at the element’s alignment to decide where it is relative to the table object.