def count_literals(term):
    """
        Counts the number of literals in a term

        Args:
            term : A string containing literals
            

        Returns:
            The number of literals in term
        """

    count = 0
    for char in term:
        if char != "_":
            count+=1

    return count