get_depth function

Function to calculate hierarchy depth in lavaan models