Black hole entropy and the Hamiltonian formulation of diffeomorphism invariant theories.