O=C(O)C(=O)O.O=C1CCCN1CCCNCC(=O)N1c2ccccc2Sc2ccccc21
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?