Finiteness conditions for a hopf algebra with a nonzero integral