input: def count_x(x, y):
      """Find the number of occurrences of element x in list y.
      >>> count_x(2, [3, 5, 2, 7, 4, 3, 2])
      2
      """
output:     count = 0
      for element in y:
          if element == x:
              count += 1
      return count