def METHOD_NAME(self):
    r"""
    The number of generators of this Lie conformal algebra.
    EXAMPLES::
        sage: Vir = lie_conformal_algebras.Virasoro(QQ)                         # needs sage.combinat sage.modules
        sage: Vir.ngens()                                                       # needs sage.combinat sage.modules
        2
        sage: V = lie_conformal_algebras.Affine(QQ, 'A2')                       # needs sage.combinat sage.modules
        sage: V.ngens()                                                         # needs sage.combinat sage.modules
        9
    """
    return len(self.gens())