Returns the number of Widget Types between the represented widget and its topmost container.
a WidgetPath
the number of elements in the path