input: from typing import List
  
  
  def count_x(x: int, y: List[int]) -> int:
      """ Count the number of occurrences of element x in the list y.
      >>> count_x(2, [3, 5, 2, 7, 4, 3, 2])
      2
      """
output:     count = 0
      for num in y:
          if num == x:
              count += 1
      return count