Index Constraint for Periodic Orbits