'Returns the number of cycles contained in the permutation
(including singletons).
Examples
>>> from sympy.combinatorics import Permutation
>>> Permutation([0, 1, 2]).cycles
3
>>> Permutation([0, 1, 2]).full_cyclic_form
[[0], [1], [2]]
>>> Permutation(0, 1)(2, 3).cycles
2
See Also
sympy.functions.combinatorial.numbers.stirling'

@property
def cycles(self):

    return len(self.full_cyclic_form)
