def countSymbols(epr, symbols):
        """
        Counts the symbols that are present in the expression.

        Parameters
        ----------
        epr: expression
        symbols: list-Symbol
        
        Returns
        -------
        int
        """
        freeSymbols = epr.free_symbols
        return len(set(freeSymbols).intersection(symbols))