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