O=C(c1ccc2c(c1)nc(S)n1c3ccccc3nc21)N1CCN(c2ncccn2)CC1
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?