O=C(C1CCCN(Cc2ccc3c(c2)OCO3)C1)N1CCCC1.O=C(O)C(=O)O
A rotatable bond is defined as any single non-ring bond, attached to a non-terminal, non-hydrogen atom. How many bonds in the molecule are rotatable?