The total number of changes of direction within a system, from the appliance connector through to termination, is four, where a 90 degree tee or 90 degree elbow count as two changes of direction each.
The maximum number of offsets in a system is 2, providing that the chimney comes straight off the top of the appliance.