Count of rotatable bonds

How to count the number of rotatable bonds in a given input molecule