def num_templates(self) -> int:
    count = 0
    for n in self.names:
        if n.is_operator():
            continue
        if n.templateArgs:
            count += 1
    return count
def num_templates(self) -> int:
    count = 0
    for n in self.names:
        if n.is_operator():
            continue
        if n.templateArgs:
            count += 1
    return count