  In this paper, we prove Morse index theorem of Lagrangian system with any
self-adjoint boundary conditions. Based on it, we give some nontrivial
estimation on the difference of Morse indices. As an application, we get a new
criterion for the stability problem of brake periodic orbit.
