It returns the order of the compartment. Soma(or first segment) has always order 0.