'Find the order of a ``FreeGroupElement``.
Examples
>>> from sympy.combinatorics.free_groups import free_group
>>> f, x, y = free_group("x y")
>>> (x**2*y*y**-1*x**-2).order()
1'

def order(self):

    if self.is_identity:
        return 1
    else:
        return S.Infinity
