Rips Induction: Index of the dual lamination of an $\R$-tree