The Hamiltonian analysis was introduced by P. Dirac in the 50s and 60s [1]}, as a way of counting dynamical degrees of freedom, and quantizing mechanical systems such as gauge theories (for busy/lazy readers see the appendix A in the Ref. [2]} for a digested version of the method).
