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