O=C(OCC(=O)N1CCN(C(=O)COC(=O)c2ccc(O)cc2O)CC1)c1ccc(O)cc1O
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?