new_contents: class Solution:
      def numJewelsInStones(self, J, S):
          """
          :type J: str
          :type S: str
          :rtype: int
          """
          return sum(stone in set(J) for stone in S)
  
subject: Create 771.py