'Returns the number of syllables of the associative word `self`.
Examples
>>> from sympy.combinatorics.free_groups import free_group
>>> f, swapnil0, swapnil1 = free_group("swapnil0 swapnil1")
>>> (swapnil1**3*swapnil0*swapnil1**-1).number_syllables()
3'

def number_syllables(self):

    return len(self.array_form)
