I tried to modify A007764-fast.c to count the number of Hamiltonian graphs but failed. Could you provide me with some help?