Index of a quadratic form