O=C([C@@H]1CC=C[C@@H]2CCN(C3CC3)C(=O)[C@@H]21)N1CCOCC1
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?