O=C(O)/C=C\C(=O)O.O=C1NCN(c2ccccc2)C12CCN(CCCN1CCN(CCOC(c3ccccc3)c3ccccc3)CC1)CC2
A rotatable bond is defined as any single non-ring bond, attached to a non-terminal, non-hydrogen atom. Amide C-N bonds are not counted because of their high barrier to rotation.  How many rotatable bonds does the molecule have?